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

[CVPR 2021] Exploring Sparsity in Image Super-Resolution for Efficient Inference
238 stars 30 forks source link

ZeroDivisionError: integer division or modulo by zero #17

Open YCHang686 opened 2 years ago

YCHang686 commented 2 years ago

File "/home/SR_code/SMSR-master/data/multiscalesrdata.py", line 86, in init self.repeat = args.test_every // (len(self.images_hr) // args.batch_size) ZeroDivisionError: integer division or modulo by zero

I met this error, can you help me?

syncerpn commented 2 years ago

It seems like either args.batch_size was 0 or self.images_hr was 0. You should check these two variables. I guess the latter is more likely the case. Then, you should check if your dataset is correctly specified.