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

Missing key(s) and Unexpected key(s) in state_dict : "cab.conv1.weight" #7

Closed
kravrolens opened this issue Feb 22, 2021 · 5 comments
Closed

Comments

@kravrolens
Copy link

kravrolens commented Feb 22, 2021

Thanks for your excellent work, but testing your dataset with pretrained models,error occurs like this,

RuntimeError: Error(s) in loading state_dict for SPADEGenerator:
Missing key(s) in state_dict: "channelAtt.conv1.weight", "channelAtt.conv1.bias", "channelAtt.conv2.weight", "channelAtt.conv2.bias".
Unexpected key(s) in state_dict: "cab.conv1.weight", "cab.conv1.bias", "cab.conv2.weight", "cab.conv2.bias".

maybe the model you upload doesn't fit the net structure?
The versions torch--1.0.0 and torchvision--0.2.1 are the same as you.

thx!

@Ha0Tang
Copy link
Owner

Ha0Tang commented Feb 22, 2021

@kravrolens can you provide more details?

@kravrolens
Copy link
Author

The same problem with issue #5(#5 (comment))

testing with the uploaded pretrained model(facades) and dataset(facades) when I run by sh test_facades.sh

@Ha0Tang
Copy link
Owner

Ha0Tang commented Feb 22, 2021

It works now, please try it again.

@Ha0Tang
Copy link
Owner

Ha0Tang commented Feb 22, 2021

will close this issue now

@Ha0Tang Ha0Tang closed this as completed Feb 22, 2021
@kravrolens
Copy link
Author

kravrolens commented Feb 22, 2021

Got it, thanks a lot.

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

2 participants