-
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
Relax hparams in model saving/loading #907
Comments
Hey, thanks for your contribution! Great first issue! |
Have not tested it, but I think it should be |
After trying
I built Any advice on this? |
I guess it should be added to that example. The GAN example has it. |
Got it! Will take note to always add hparams to |
@awaelchli find submitting a PR to fix? i think the point was for hparams to be optional? or should we make it more flexible? @neggert |
I can look at it. |
I will hold back until #849 is finalized because it affects ModelCheckpoint callback. |
I've managed to train a model using pl.fit(model) and have the .ckpt file. Now, I'm trying to load the .ckpt file so that I can do inference on a single image:
However, upon loading the .ckpt file, the following error is thrown:
Am I doing something wrong when using PyTorch Lightning for inference?
For reference, this is my system:
And I'm training it this way:
The text was updated successfully, but these errors were encountered: