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: division by zero #46

Closed
choieq opened this issue Aug 21, 2020 · 1 comment
Closed

ZeroDivisionError: division by zero #46

choieq opened this issue Aug 21, 2020 · 1 comment

Comments

@choieq
Copy link

choieq commented Aug 21, 2020

When i run the code to test, got the this error.

./SAN/TestCode/code/trainer.py, line 113 in test

self.ckp.log[-1, idx_scale] = eval_acc / len(self.loader_test)
ZeroDivisionError: division by zero.

I have no idea why len(self.loader_test) is zero.

How can i fix this error?

@choieq choieq closed this as completed Aug 26, 2020
@fehimebetul
Copy link

How to solve this error?Can you share the solution?

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