qgao21 / CoreDiff

35 stars 3 forks source link

IndexError:list index out of range #5

Open ismashiping opened 10 months ago

ismashiping commented 10 months ago

在dataset.py中运行到getitem()函数下,断点调试后,input输入在出init后始终为0,target没有问题,具体报错如下,请问是哪出了问题,该怎么调试呢? When I run getitem() function in dataset.py, after debugging the breakpoint, the input is always 0 after init, and there is no problem with target. The specific error is as follows, may I ask what is the problem? IndexError

qgao21 commented 10 months ago
  1. 你可以在dataset里print(len(self.input)和print(len(self.target))看看是否获取了正确数目的input data path和target data path,两者数目需要一样
  2. 如果数目不一样,你需要检查你的文件夹路径和文件是否有误。