-
Notifications
You must be signed in to change notification settings - Fork 378
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
Tutorials: issue with trainer and logger? #1143
Comments
Same issue with the trainers tutorial. |
Probably need to add a line using hasattr to check if the logger has an add_figure method. That would allow users to train w/o the plotting overhead as well. |
I'm surprised that mypy doesn't catch this, it normally complains on possibly undefined attributes like this. But yeah, I think hasattr is the easiest fix. We could also expand the try-except to catch anything, but that's bad practice. |
I believe this is because of the logger used. In the tutorial we're using |
Yeah, but we run the exact same tutorial in our release tests and it passes, so idk why it only happens on Colab. I'll try adding a test with CSVLogger to see if I can reproduce it locally. |
Just switched to |
Nope, can't reproduce locally with CSVLogger. I can fix the bug but it's frustrating that I can't test it. |
Description
Seeing the following error when I run our Pretrained Weights tutorial on Colab:
Could it be that our trainers only work when using TensorBoardLogger and CSVLogger is crashing? If so we should fix the trainers. Also curious why our tests didn't catch this.
Steps to reproduce
Version
0.5.0.dev0 (e81af42)
The text was updated successfully, but these errors were encountered: