-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
PyTorch: check point support #401
Comments
Can you share the model file? |
|
great, thanks! I can load the checkpoint file. |
@tensorbuffer @lutzroeder @demid5111 @scottcjt i am also facing the same issues not able to visualize any connection between the modules , any idea how to obtain the connections ?? |
I think this is because pytorch graph is dynamic, the graph is generated on the fly, so you have to feed an input and execute the model to get the graph. |
Hi, I also have this problem with the models of this project: https://github.com/BloodAxe/Kaggle-2020-Alaska2/releases Does anybody have an idea how I can see the connections etc.? Thank you! |
Hello, when I try to use the web version to load pytorch checkpoint file, I got this error: Error loading PyTorch model. File does not contain root module or state dictionary in 'checkpoint.pth'.
The checkpoint is saved as:
checkpoint = {
'model': model_without_ddp.state_dict(),
'optimizer': optimizer.state_dict(),
'lr_scheduler': lr_scheduler.state_dict(),
'epoch': epoch,
'args': args}
torch.save(
checkpoint, path_to_file)
This is pytorch standard way of saving checkpoint:
https://pytorch.org/tutorials/beginner/saving_loading_models.html#saving-loading-a-general-checkpoint-for-inference-and-or-resuming-training
The text was updated successfully, but these errors were encountered: