ohhhyeahhh / PointAttN

Code for the paper "PointAttN: You Only Need Attention for Point Cloud Completion"
https://ojs.aaai.org/index.php/AAAI/article/view/28356
89 stars 13 forks source link

关于进行test报错 #15

Closed ruiqiyan closed 1 year ago

ruiqiyan commented 1 year ago

请问为什么我模型跑完之后,进行test时会出现超出索引这个错误。

WangJun-ZJUT commented 1 year ago

您好,请发一下详细的报错信息,我们可以一起解决问题。

ruiqiyan commented 1 year ago

好的,我现在把问题汇总一下

ruiqiyan commented 1 year ago

您看,就是进行test时 Traceback (most recent call last): File "test_pcn.py", line 108, in test() File "test_pcn.py", line 70, in test if not os.path.isdir(os.path.join(os.path.dirname(args.load_model), 'all', str(label[j]))): IndexError: tuple index out of range

ruiqiyan commented 1 year ago

报错:元组索引超出范围; test记录: INFO:root:Length of test dataset:1200 INFO:root:PointAttN's previous weights loaded. INFO:root:Testing... INFO:root:test [0/37]

WangJun-ZJUT commented 1 year ago

您好,我们检查了代码,没有任何问题,建议您可以尝试打印出变量label的尺寸检查一下。

ruiqiyan commented 1 year ago

好的我来试一下

ruiqiyan commented 1 year ago

您好,当我使 save_vis: False 确实可以顺利的跑完。可是save_vis: True 时就又会出现这个错误

ruiqiyan commented 1 year ago

不好意思我没看见我的batch_size调的过于低才会使tuple index out of range