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

state_dict for UNet2DConditionModel #60

Closed
Pershing-Maxwell opened this issue Jan 20, 2023 · 1 comment
Closed

state_dict for UNet2DConditionModel #60

Pershing-Maxwell opened this issue Jan 20, 2023 · 1 comment

Comments

@Pershing-Maxwell
Copy link

I got this:
File "D:\LORA\kohya_ss\venv\lib\site-packages\torch\nn\modules\module.py", line 1604, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for UNet2DConditionModel:
size mismatch for down_blocks.0.attentions.0.transformer_blocks.0.attn2.to_k.weight: copying a param with shape torch.Size([320, 768]) from checkpoint, the shape in current model is torch.Size([320, 1024]).

@bmaltais
Copy link
Owner

This is something that should be reported directly to kohya at https://github.com/kohya-ss/sd-scripts

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