Skip to content
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 with loading state_dict for ResnetEncoder #12

Open
damlab5 opened this issue Feb 13, 2024 · 0 comments
Open

error with loading state_dict for ResnetEncoder #12

damlab5 opened this issue Feb 13, 2024 · 0 comments

Comments

@damlab5
Copy link

damlab5 commented Feb 13, 2024

I get this error:
File "C:\Users\d\Desktop\hazy_python\main.py", line 102, in test_simple
encoder.load_state_dict(filtered_dict_enc)

File "C:\Users..\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 1672, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))

RuntimeError: Error(s) in loading state_dict for ResnetEncoder:
Missing key(s) in state_dict: "encoder.layer1.0.conv3.weight", "encoder.layer1.0.bn3.weight", "encoder.layer1.0.bn3.bias", "encoder.layer1.0.bn3.running_mean", "encoder.layer1.0.bn3.running_var",............

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant