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

RuntimeError: Error(s) in loading state_dict for GaussianDiffusion: #45

Open
cxh1028 opened this issue Jun 7, 2024 · 1 comment
Open

Comments

@cxh1028
Copy link

cxh1028 commented Jun 7, 2024

Excuse me,I have the following problem, can you help me solve it.
Traceback (most recent call last):
File "ddpm_cd.py", line 88, in
diffusion = Model.create_model(opt)
File "F:\anaconda\envs\xxxpytorch\lib\site-packages\torch\nn\modules\module.py", line 1406, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for GaussianDiffusion:
Unexpected key(s) in state_dict: "denoise_fn.downs.12.attn.norm.weight", "denoise_fn.downs.12.attn.norm.bias", "denoise_fn.downs.12.attn.qkv.weight", "denoise_fn.downs.12.attn.out.weight", "denoise_fn.downs.12.attn.out.bias", "denoise_fn.downs.13.attn.norm.weight", "denoise_fn.downs.13.attn.norm.bias", "denoise_fn.downs.13.attn.qkv.weight", "denoise_fn.downs.13.attn.out.weight", "denoise_fn.downs.13.attn.out.bias", "denoise_fn.ups.0.attn.norm.weight", "denoise_fn.ups.0.attn.norm.bias", "denoise_fn.ups.0.attn.qkv.weight", "denoise_fn.ups.0.attn.out.weight", "denoise_fn.ups.0.attn.out.bias", "denoise_fn.ups.1.attn.norm.weight", "denoise_fn.ups.1.attn.norm.bias", "denoise_fn.ups.1.attn.qkv.weight", "denoise_fn.ups.1.attn.out.weight", "denoise_fn.ups.1.attn.out.bias", "denoise_fn.ups.2.attn.norm.weight", "denoise_fn.ups.2.attn.norm.bias", "denoise_fn.ups.2.attn.qkv.weight", "denoise_fn.ups.2.attn.out.weight", "denoise_fn.ups.2.attn.out.bias".

@15216257736
Copy link

I'm also running into this issue, please did you solve it with English translation?

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