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 for IDEncoder: #110

Open
LuckierBread opened this issue Nov 22, 2024 · 8 comments
Open

Error(s) in loading state_dict for IDEncoder: #110

LuckierBread opened this issue Nov 22, 2024 · 8 comments

Comments

@LuckierBread
Copy link

When i try to run my workflow it gets stuck in the Load PulID Model node. I am using pulid_v1.1.safetensors.
I figured that my model was just corrupt so I downloaded it from the source https://github.com/ToTheBeginning/PuLID but I got the issue again. seems like it's not reading the file right but I don't know what to do about it.

File "C:\Users\y\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\torch\nn\modules\module.py", line 2215, in load_state_dict raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format( RuntimeError: Error(s) in loading state_dict for IDEncoder: Missing key(s) in state_dict: "body.0.weight", "body.0.bias", "body.1.weight", "body.1.bias", "body.3.weight", "body.3.bias", "body.4.weight", "body.4.bias", "body.6.weight", "body.6.bias", "mapping_0.0.weight", "mapping_0.0.bias", "mapping_0.1.weight", "mapping_0.1.bias", "mapping_0.3.weight", "mapping_0.3.bias", "mapping_0.4.weight", "mapping_0.4.bias", "mapping_0.6.weight", "mapping_0.6.bias", "mapping_patch_0.0.weight", "mapping_patch_0.0.bias", "mapping_patch_0.1.weight", "mapping_patch_0.1.bias", "mapping_patch_0.3.weight", "mapping_patch_0.3.bias", "mapping_patch_0.4.weight", "mapping_patch_0.4.bias", "mapping_patch_0.6.weight", "mapping_patch_0.6.bias", "mapping_1.0.weight", "mapping_1.0.bias", "mapping_1.1.weight", "mapping_1.1.bias", "mapping_1.3.weight", "mapping_1.3.bias", "mapping_1.4.weight", "mapping_1.4.bias", "mapping_1.6.weight", "mapping_1.6.bias", "mapping_patch_1.0.weight", "mapping_patch_1.0.bias", "mapping_patch_1.1.weight", "mapping_patch_1.1.bias", "mapping_patch_1.3.weight", "mapping_patch_1.3.bias", "mapping_patch_1.4.weight", "mapping_patch_1.4.bias", "mapping_patch_1.6.weight", "mapping_patch_1.6.bias", "mapping_2.0.weight", "mapping_2.0.bias", "mapping_2.1.weight", "mapping_2.1.bias", "mapping_2.3.weight", "mapping_2.3.bias", "mapping_2.4.weight", "mapping_2.4.bias", "mapping_2.6.weight", "mapping_2.6.bias", "mapping_patch_2.0.weight", "mapping_patch_2.0.bias", "mapping_patch_2.1.weight", "mapping_patch_2.1.bias", "mapping_patch_2.3.weight", "mapping_patch_2.3.bias", "mapping_patch_2.4.weight", "mapping_patch_2.4.bias", "mapping_patch_2.6.weight", "mapping_patch_2.6.bias", "mapping_3.0.weight", "mapping_3.0.bias", "mapping_3.1.weight", "mapping_3.1.bias", "mapping_3.3.weight", "mapping_3.3.bias", "mapping_3.4.weight", "mapping_3.4.bias", "mapping_3.6.weight", "mapping_3.6.bias", "mapping_patch_3.0.weight", "mapping_patch_3.0.bias", "mapping_patch_3.1.weight", "mapping_patch_3.1.bias", "mapping_patch_3.3.weight", "mapping_patch_3.3.bias", "mapping_patch_3.4.weight", "mapping_patch_3.4.bias", "mapping_patch_3.6.weight", "mapping_patch_3.6.bias", "mapping_4.0.weight", "mapping_4.0.bias", "mapping_4.1.weight", "mapping_4.1.bias", "mapping_4.3.weight", "mapping_4.3.bias", "mapping_4.4.weight", "mapping_4.4.bias", "mapping_4.6.weight", "mapping_4.6.bias", "mapping_patch_4.0.weight", "mapping_patch_4.0.bias", "mapping_patch_4.1.weight", "mapping_patch_4.1.bias", "mapping_patch_4.3.weight", "mapping_patch_4.3.bias", "mapping_patch_4.4.weight", "mapping_patch_4.4.bias", "mapping_patch_4.6.weight", "mapping_patch_4.6.bias".

@mino962
Copy link

mino962 commented Nov 24, 2024

i have the same issuie

@cubiq
Copy link
Owner

cubiq commented Nov 24, 2024

the model has to be converted, it doesn't work out of the box

@LuckierBread
Copy link
Author

How might one convert it? I didn't see any steps in the readme.

@cubiq
Copy link
Owner

cubiq commented Nov 24, 2024

I need to take the time to understand the new format

@LuckierBread
Copy link
Author

LuckierBread commented Nov 24, 2024

Understood, keep up the good work. I will do a little more digging myself to see if I can figure out what's going on.

@leoliuzcl
Copy link

occur the same issue , any update?

@PandaBalls
Copy link

I used F.1 dev-fp16 GGUF checkpoints, got the same error:
Error(s) in loading state_dict for IDEncoder: Missing key(s) in state_dict: "body.0.weight", "body.0.bias", "body.1.weight", "body.1.bias", "body.3.weight", "body.3.bias", "body.4.weight", "body.4.bias", "body.6.weight", "body.6.bias", "mapping_0.0.weight", "mapping_0.0.bias", "mapping_0.1.weight", "mapping_0.1.bias", "mapping_0.3.weight", "mapping_0.3.bias", "mapping_0.4.weight", "mapping_0.4.bias", "mapping_0.6.weight", "mapping_0.6.bias", "mapping_patch_0.0.weight", "mapping_patch_0.0.bias", "mapping_patch_0.1.weight", "mapping_patch_0.1.bias", "mapping_patch_0.3.weight", "mapping_patch_0.3.bias", "mapping_patch_0.4.weight", "mapping_patch_0.4.bias", "mapping_patch_0.6.weight", "mapping_patch_0.6.bias", "mapping_1.0.weight", "mapping_1.0.bias", "mapping_1.1.weight", "mapping_1.1.bias", "mapping_1.3.weight", "mapping_1.3.bias", "mapping_1.4.weight", "mapping_1.4.bias", "mapping_1.6.weight", "mapping_1.6.bias", "mapping_patch_1.0.weight", "mapping_patch_1.0.bias", "mapping_patch_1.1.weight", "mapping_patch_1.1.bias", "mapping_patch_1.3.weight", "mapping_patch_1.3.bias", "mapping_patch_1.4.weight", "mapping_patch_1.4.bias", "mapping_patch_1.6.weight", "mapping_patch_1.6.bias", "mapping_2.0.weight", "mapping_2.0.bias", "mapping_2.1.weight", "mapping_2.1.bias", "mapping_2.3.weight", "mapping_2.3.bias", "mapping_2.4.weight", "mapping_2.4.bias", "mapping_2.6.weight", "mapping_2.6.bias", "mapping_patch_2.0.weight", "mapping_patch_2.0.bias", "mapping_patch_2.1.weight", "mapping_patch_2.1.bias", "mapping_patch_2.3.weight", "mapping_patch_2.3.bias", "mapping_patch_2.4.weight", "mapping_patch_2.4.bias", "mapping_patch_2.6.weight", "mapping_patch_2.6.bias", "mapping_3.0.weight", "mapping_3.0.bias", "mapping_3.1.weight", "mapping_3.1.bias", "mapping_3.3.weight", "mapping_3.3.bias", "mapping_3.4.weight", "mapping_3.4.bias", "mapping_3.6.weight", "mapping_3.6.bias", "mapping_patch_3.0.weight", "mapping_patch_3.0.bias", "mapping_patch_3.1.weight", "mapping_patch_3.1.bias", "mapping_patch_3.3.weight", "mapping_patch_3.3.bias", "mapping_patch_3.4.weight", "mapping_patch_3.4.bias", "mapping_patch_3.6.weight", "mapping_patch_3.6.bias", "mapping_4.0.weight", "mapping_4.0.bias", "mapping_4.1.weight", "mapping_4.1.bias", "mapping_4.3.weight", "mapping_4.3.bias", "mapping_4.4.weight", "mapping_4.4.bias", "mapping_4.6.weight", "mapping_4.6.bias", "mapping_patch_4.0.weight", "mapping_patch_4.0.bias", "mapping_patch_4.1.weight", "mapping_patch_4.1.bias", "mapping_patch_4.3.weight", "mapping_patch_4.3.bias", "mapping_patch_4.4.weight", "mapping_patch_4.4.bias", "mapping_patch_4.6.weight", "mapping_patch_4.6.bias".

@bloodmilksky
Copy link

I changed mine to flux versions and it worked
Untitled

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

6 participants