-
Notifications
You must be signed in to change notification settings - Fork 11
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
possible bug in test_wake.py: 'int' object is not iterable #45
Comments
I'm running in the same error, @zzhaozhe-profolio do you know to fix this? |
Ohh It's a bug within the pytorch-lightning, if the current epoch is not validation, we will have sum(0) for total_val_batches in the error message, which will throw a TypeError. Lightning-AI/pytorch-lightning#2213 I think while waiting for new version of lightning, currently we can bypass this bug by setting check_val_every_epoch to be default and it might solve the problem. @ismael2395 |
Thanks @zzhaozhe-profolio , will try that. |
it works for me once I left it as default. Is there a reason we want to set |
Nothing particularly important. I was strictly follow the old wake.py, which checks the encoder on the test image (set run_map = True) every 10 epochs. So it's fine we can remove it and val_dataloader and validation_step. |
Great the PR I'm about to merge solves this by just getting rid of it. |
The text was updated successfully, but these errors were encountered: