sanghyun-son / EDSR-PyTorch

PyTorch version of the paper 'Enhanced Deep Residual Networks for Single Image Super-Resolution' (CVPRW 2017)
MIT License
2.43k stars 669 forks source link

integer division or modulo by zero #60

Closed freehome1 closed 6 years ago

freehome1 commented 6 years ago

I run the demo with my test images and yours, but I met a problem which is integer division or modulo by zero,in srdata.py 86, I have tried : python main.py --data_test Demo --scale 4 --pre_train ../experiment/model/EDSR_baseline_x4.pt --test_only --save_results and python main.py --model EDSR --scale 2 --patch_size 96 --save EDSR_baseline_x2 --reset

sanghyun-son commented 6 years ago

Hello.

Please check the data directory whether you have the full DIV2K dataset with appropriate file structure.

Thank you.