mogvision / ADL

MIT License
55 stars 11 forks source link

Undeclared variable in dataloader (and dataloader_test) #4

Open Bashirkazimi opened 2 years ago

Bashirkazimi commented 2 years ago

Hi,

Great work. Please correct me if I am wrong, but shouldn't

img_dirs['y'] = [files.replace('/HR/', '/LR/') for files in x_files]

actually be:

img_dirs['y'] = [files.replace('/HR/', '/LR/') for files in img_dirs['x']]

in pytorch/utils/dataloader.py line 201

The x_files variable is not defined before.

Similar typo in line 204 and the corresponding dataloader_test file.

Cheers, Bashir

xusang77 commented 1 year ago

I think you are right. I also find this typo.