You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
How can I solve this problem?
Thank you very much!
The text was updated successfully, but these errors were encountered: