-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Error when loading with LitModel.load_from_checkpoint(path)? #2364
Comments
Hi! thanks for your contribution!, great first issue! |
Might be related to #2334 |
Thank you for your reply! This code snippet gives me the same error:
Via conda I get no update and also tried to upgrade with pip but still 0.8. |
Sorry, I meant changing the init to (self, hparams). To me it looks the load_from_checkpoint is trying to force hparams (2 arguments given) Try to |
Thank you, I was able to install the 0.8.1 version with this trick. When I add When I load the checkpoint with I suspect the |
yes, you need to allow your class to pass arguments to the parent class, otherwise, it seems duplicate to #2386 |
❓ Questions and Help
Before asking:
What is your question?
When I'm loading a Lightning model with LitModel.load_from_checkpoint(path) I always get this error:
Code
Simple example is from https://pytorch-lightning.readthedocs.io/en/latest/new-project.html.
Custom LightModul is very similar but I am using other data, sets, and loaders and a torchvision ResNet.
What have you tried?
I tried different checkpoints as well as relative and absolute paths.
Checkpoints are loaded from
lightning_logs/version_0/checkpoints/
which where saved automatically after stopping training.Setup and training itself works without problems.
I also get the same error with the more complex setup.
Maybe I don't see something super obvious?
Thank you very much & kind regards
What's your environment?
pytorch_select 0.2
pytorch 1.3.1
pytorch-lightning 0.8.0
The text was updated successfully, but these errors were encountered: