alterzero / DBPN-Pytorch

The project is an official implement of our CVPR2018 paper "Deep Back-Projection Networks for Super-Resolution" (Winner of NTIRE2018 and PIRM2018)
https://alterzero.github.io/projects/DBPN.html
MIT License
566 stars 164 forks source link

local variable 'input' referenced before assignment #20

Closed jotoy closed 5 years ago

jotoy commented 6 years ago

UnboundLocalError: local variable 'input' referenced before assignment

qingchuanhuajuan commented 6 years ago

Hello, I also encountered the same error when running the “main.py ”file. I modified it, but there are still errors. How can you solve this problem?

qingchuanhuajuan commented 6 years ago

@jotoy Modify the name of the dataset in dataset.py. This LR name should be the same as in main.py.

jotoy commented 6 years ago

Hello, I also encountered the same error when running the “main.py ”file. I modified it, but there are still errors. How can you solve this problem?

you may find the class DatasetFromFolder in dataset.py. then you should change the dataset name if self.dataset == 'DIV2K_train_LR_aug_x8': to the right name you are used.

qingchuanhuajuan commented 6 years ago

Yes, that's it. Guarantee the same name