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 ControlLDM: Unexpected key(s) in state_dict: "cond_stage_model.transformer.text_model.embeddings.position_ids". #721

Open
LukeLIN-web opened this issue Nov 8, 2024 · 0 comments

Comments

@LukeLIN-web
Copy link

Loaded state_dict from [./models/control_sd15_canny.pth]
Traceback (most recent call last):
File "/home/juyi/ControlNet/gradio_canny2image.py", line 21, in
model.load_state_dict(load_state_dict('./models/control_sd15_canny.pth', location='cuda'))
File "/home/juyi/miniconda3/envs/viditq/lib/python3.10/site-packages/torch/nn/modules/module.py", line 2152, in load_state_dict
raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for ControlLDM:
Unexpected key(s) in state_dict: "cond_stage_model.transformer.text_model.embeddings.position_ids".

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