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

RuntimeError: self.net.module.load_state_dict(obj['net']) #9

Closed
taotaoyuhust opened this issue Aug 27, 2019 · 8 comments
Closed

RuntimeError: self.net.module.load_state_dict(obj['net']) #9

taotaoyuhust opened this issue Aug 27, 2019 · 8 comments

Comments

@taotaoyuhust
Copy link

using the pretrained model throw out this error:

RuntimeError: Error(s) in loading state_dict for EMANet:
Missing key(s) in state_dict: "extractor.4.0.conv1.weight", "extractor.4.0.bn1.weight", "extractor.4.0.bn1.bias", "extractor.4.0.bn1.running_mean", "extractor.4.0.bn1.running_var", "extractor.4.0.conv2.weight", ......
Unexpected key(s) in state_dict: "layer1.0.0.conv1.weight", "layer1.0.0.bn1.weight", "layer1.0.0.b

someone can help?

@XiaLiPKU
Copy link
Owner

Sorry, I forgot to change the keys' names

@taotaoyuhust
Copy link
Author

3x for reply, so how to solve it?

@XiaLiPKU
Copy link
Owner

I will upload a usable pth sooner.

@shiyuanyin
Copy link

@XiaLiPKU
hello author,
Thank you for your work, I want to ask you a question ,your EMAnet is used segment, if I am use in classification task .What do you think of the effect? If it is necessary to try , the emau structure need to change?

@illutheplanet
Copy link

same problem here

@illutheplanet
Copy link

it occurs to me:
RuntimeError: Error(s) in loading state_dict for EMANet:
Unexpected key(s) in state_dict: "extractor.6.0.conv1.weight", "extractor.6.0.bn1.weight", "extractor.6.0.bn1.bias", "extractor.6.0.bn1.running_mean", "extractor.6.0.bn1.running_var", "extractor.6.0.bn1.num_batches_tracked", "extractor.6.0.conv2.weight", "e

@XiaLiPKU
Copy link
Owner

XiaLiPKU commented Sep 4, 2019

using the pretrained model throw out this error:

RuntimeError: Error(s) in loading state_dict for EMANet:
Missing key(s) in state_dict: "extractor.4.0.conv1.weight", "extractor.4.0.bn1.weight", "extractor.4.0.bn1.bias", "extractor.4.0.bn1.running_mean", "extractor.4.0.bn1.running_var", "extractor.4.0.conv2.weight", ......
Unexpected key(s) in state_dict: "layer1.0.0.conv1.weight", "layer1.0.0.bn1.weight", "layer1.0.0.b

someone can help?

Now, I have updated the pretrained model and the link.
You can download it again and direct use it in your code

@XiaLiPKU
Copy link
Owner

XiaLiPKU commented Sep 4, 2019

it occurs to me:
RuntimeError: Error(s) in loading state_dict for EMANet:
Unexpected key(s) in state_dict: "extractor.6.0.conv1.weight", "extractor.6.0.bn1.weight", "extractor.6.0.bn1.bias", "extractor.6.0.bn1.running_mean", "extractor.6.0.bn1.running_var", "extractor.6.0.bn1.num_batches_tracked", "extractor.6.0.conv2.weight", "e

Now I have updated the pth file. Please download it again.

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

4 participants