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

Meet with error: KeyError: 'unexpected key "upsample2.conv.weight" in state_dict' #10

Open
Andrew-Zhu opened this issue Jan 11, 2018 · 5 comments

Comments

@Andrew-Zhu
Copy link

When I tried to use "./test --cuda", it can not work. And it prints " KeyError: 'unexpected key "upsample2.conv.weight" in state_dict'"

Can the code work?

@penguin1214
Copy link

@Andrew-Zhu Hi, have you solved the problem? If so, could you share it? I ran in the same problem.

@958099161
Copy link

hi,i have the problem as same as you.so how to resolve it

@Bobholamovic
Copy link

Hey bros, I met the same problem and when I set the upscale factor to 4 it turned out working.

@sen-mao
Copy link

sen-mao commented May 22, 2019

I have the same problem when I use python3.7.
When I change to use Anaconda3, I solve this problem, although I don't know why.

@jerofad
Copy link

jerofad commented Aug 12, 2019

I met this same issue and I did this
generator.load_state_dict(torch.load(opt.generatorWeights), strict=False)

same for the discriminator

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

6 participants