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

Open
xiefan233 opened this issue Nov 2, 2023 · 1 comment

Comments

@xiefan233
Copy link

xiefan233 commented Nov 2, 2023

How can I solve this problem?
Thank you very much!

@Tianyu9748
Copy link

Line 57 under $project_hone/scripts/sample_utils.py
Change model.load_state_dict(sd, strict=True) to model.load_state_dict(sd, strict=False) will solve the issue.

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