-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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: File does not contain root module or state dictionary #236
Comments
|
lutzroeder
added a commit
that referenced
this issue
Apr 8, 2019
lutzroeder
added a commit
that referenced
this issue
Apr 9, 2019
lutzroeder
added a commit
that referenced
this issue
Apr 10, 2019
lutzroeder
added a commit
that referenced
this issue
Apr 11, 2019
lutzroeder
added a commit
that referenced
this issue
Apr 11, 2019
lutzroeder
added a commit
that referenced
this issue
Apr 14, 2019
lutzroeder
added a commit
that referenced
this issue
May 18, 2019
Duplicate of #133. |
lutzroeder
changed the title
Not able to visualize PyTorch model
PyTorch: File does not contain root module or state dictionary.
Sep 16, 2023
lutzroeder
changed the title
PyTorch: File does not contain root module or state dictionary.
PyTorch: File does not contain root module or state dictionary
Sep 16, 2023
Duplicate of #543 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. thanks for the repository.
I'm failing to visualize a PyTorch model that I save with the following line:
torch.save(model.state_dict(), 'model.pth')
and then I get this Error from Netron :
But when I convert it to ONNX in the following way, I'm able to visualize the ONNX model :
torch.onnx.export(model, img, 'model.onnx')
Also when I tried to save the full model in PyTorch (without the ".state_dict()" part), I don't get the error but it doesn't show the correct Graph and only a single-node graph basically is displayed.
Any clue how to resolve this issue?
The text was updated successfully, but these errors were encountered: