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(s) in loading state_dict #19

Open
WorldofDepth opened this issue Apr 26, 2023 · 3 comments
Open

Error(s) in loading state_dict #19

WorldofDepth opened this issue Apr 26, 2023 · 3 comments

Comments

@WorldofDepth
Copy link

Any idea why I get this error? I've downloaded the three checkpoint models, and should be fine on RAM… Thank you for any help.

RuntimeError: Error(s) in loading state_dict for DataParallel: Missing key(s) in state_dict: "module.PBEnc.vgg.0.weight", "module.PBEnc.vgg.0.bias" [continues to list many files]

@Azq2
Copy link

Azq2 commented Jul 24, 2023

image

This should fix

            self.G_A_net = torch.nn.DataParallel(self.G_A_net)
            self.alias_net = torch.nn.DataParallel(self.alias_net)

@WorldofDepth
Copy link
Author

Thank you. Where / which file should that be inserted into?

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