-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Calling trainer.fit fails with: AttributeError: 'dict' object has no attribute 'pretty' #5672
Comments
Try to upgrade to OmegaConf 2.0, you have an incompatible version installed. |
@nithinivi what OmegaConf are you using? |
config.pretty() is deprecated in OmegaConf 2.0 and the source code no longer contain calls to it. By the way, please upgrade to latest OmegaConf 2.0 release (currently 2.0.6). |
I created a new conda env and installed the torch and pytorch-ligthing. I have installed python using pyenv and executing the code in a jupyter notebook. |
I had the same issue with omegaconf 2.0.1rc11. |
I believe issue is resolved now. Please feel free to reopen if required :) |
🐛 Bug
Calling trainer.fit fails with AttributeError: 'dict' object has no attribute 'pretty'
To Reproduce
Expected behavior
Calling trainer.fit(autoencoder, DataLoader(train)) should train MNIST classifier without errors.
Environment
save_best_only
tosave_top_k
#70~18.04.1-Ubuntu SMP Tue Jan 12 17:18:00 UTC 2021Additional context
The program was running on jupyter notebook.
The text was updated successfully, but these errors were encountered: