The-Learning-And-Vision-Atelier-LAVA / DASR

[CVPR 2021] Unsupervised Degradation Representation Learning for Blind Super-Resolution
MIT License
388 stars 50 forks source link

Question about the preparation for the training set #26

Open ruili3 opened 3 years ago

ruili3 commented 3 years ago

Thanks for the impressive work! To train the dataset, I downloaded 2650 Flickr2K HR images and 900 DIV2K_train_HR images, and copy them together to the /traing_path/HR folder. However, when I change the path and run the main.sh code, an error occurs in line 65 of multiscalesrdata.py: "self.repeat = args.test_every // (len(self.images_hr) // args.batch_size) ERROR: ZeroDivisionError: integer division or modulo by zero". Is there anything wrong with the train set? Could you please offer some advice on the situation? Thanks a lot!

LongguangWang commented 3 years ago

Hi @ruili3, thanks for your interest in our work. Please check whether your training data is put in your_data_path/DF2K/HR. Besides, you only need to change the dir_data to your_data_path, not your_data_path/DF2K.