CARN-pytorch icon indicating copy to clipboard operation
CARN-pytorch copied to clipboard

index out

Open yucongzhao1 opened this issue 4 years ago • 3 comments

IndexError: Traceback (most recent call last): File "/home/zyc/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in _worker_loop samples = collate_fn([dataset[i] for i in batch_indices]) File "/home/zyc/anaconda3/envs/pytorch/lib/python3.6/site-packages/torch/utils/data/dataloader.py", line 106, in samples = collate_fn([dataset[i] for i in batch_indices]) File "/home/zyc/tensorflow/SR分析/CARN/CARN-pytorch/carn/dataset.py", line 66, in getitem item = [(self.hr[index], self.lr[i][index]) for i, _ in enumerate(self.lr)] File "/home/zyc/tensorflow/SR分析/CARN/CARN-pytorch/carn/dataset.py", line 66, in item = [(self.hr[index], self.lr[i][index]) for i, _ in enumerate(self.lr)] IndexError: list index out of range @nmhkahn I don't know what to do. Can you help me

yucongzhao1 avatar Jun 03 '20 13:06 yucongzhao1

Hi did you solve this problem? If so, could you tell me how?

Jiaqi-WANG avatar Jan 20 '21 09:01 Jiaqi-WANG

maybe you should make a correct DIV2K_train.h5

Tracy-git avatar Mar 15 '23 07:03 Tracy-git

看一下你生成.h5文件的时候,DIV2K下是否有对应的低分辨率图像 DIV2K_train_LR_bicubic/X2、X3、X4和DIV2K_valid_LR_bicubic/X2、X3、X4

leotuTu avatar Apr 30 '24 07:04 leotuTu