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 loading model trained using previous version. #132

Open
hizzlehoff opened this issue Nov 28, 2022 · 0 comments
Open

Error loading model trained using previous version. #132

hizzlehoff opened this issue Nov 28, 2022 · 0 comments

Comments

@hizzlehoff
Copy link

hizzlehoff commented Nov 28, 2022

I'm getting the following error since the update from 2 days ago when loading a previously trained model:

I can keep working by using the previous version:
"!pip install denoising_diffusion_pytorch==0.31"

Thank you.

/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in load_state_dict(self, state_dict, strict)
1603 if len(error_msgs) > 0:
1604 raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
-> 1605 self.class.name, "\n\t".join(error_msgs)))
1606 return _IncompatibleKeys(missing_keys, unexpected_keys)
1607

RuntimeError: Error(s) in loading state_dict for GaussianDiffusion:
Missing key(s) in state_dict: "model.downs.0.3.1.weight", "model.downs.0.3.1.bias", "model.downs.1.3.1.weight", "model.downs.1.3.1.bias", "model.downs.2.3.1.weight", "model.downs.2.3.1.bias".
Unexpected key(s) in state_dict: "model.downs.0.3.weight", "model.downs.0.3.bias", "model.downs.1.3.weight", "model.downs.1.3.bias", "model.downs.2.3.weight", "model.downs.2.3.bias".

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

1 participant