qgao21/CoreDiff

IndexError:list index out of range

Opened this issue · 1 comments

在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
  1. 你可以在dataset里print(len(self.input)和print(len(self.target))看看是否获取了正确数目的input data path和target data path,两者数目需要一样
  2. 如果数目不一样,你需要检查你的文件夹路径和文件是否有误。