Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroDivisionError: integer division or modulo by zero #17

Open
YCHang686 opened this issue Jan 8, 2022 · 1 comment
Open

ZeroDivisionError: integer division or modulo by zero #17

YCHang686 opened this issue Jan 8, 2022 · 1 comment

Comments

@YCHang686
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants