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

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format #29

Open
manhnguyen92 opened this issue Sep 23, 2022 · 3 comments

Comments

@manhnguyen92
Copy link

manhnguyen92 commented Sep 23, 2022

raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for BaseConvGenerator:
size mismatch for conv14.weight: copying a param with shape torch.Size([96, 96, 3, 3]) from checkpoint, the shape in current model is torch.Size([96, 48, 3, 3]).
size mismatch for conv16.weight: copying a param with shape torch.Size([48, 48, 3, 3]) from checkpoint, the shape in current model is torch.Size([24, 24, 3, 3]).
size mismatch for conv16.bias: copying a param with shape torch.Size([48]) from checkpoint, the shape in current model is torch.Size([24]).
size mismatch for conv17.weight: copying a param with shape torch.Size([3, 24, 3, 3]) from checkpoint, the shape in current model is torch.Size([3, 12, 3, 3]).

@manhnguyen92 manhnguyen92 changed the title How to test with pre-trained model? raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format Sep 23, 2022
@1997Jessie
Copy link

I have same problems with you! Hava u solved it?

@manhnguyen92
Copy link
Author

@1997Jessie yes i did. but result image not good as expected. you should find another lib

@1997Jessie
Copy link

@1997Jessie yes i did. but result image not good as expected. you should find another lib

copy that!

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