"vscode:/vscode.git/clone" did not exist on "67c3518f68d9129a1c429fd45659c7896c44e08e"
Unverified Commit 8f21a9f0 authored by Fkunn1326's avatar Fkunn1326 Committed by GitHub
Browse files

Fix convert SD to diffusers error (#1979) (#2529)



Fix convert sd 768 error (#1979)
Co-authored-by: default avatartweeter0830 <tweeter0830@users.noreply.github.com>
parent d9b9533c
......@@ -841,7 +841,10 @@ def convert_open_clip_checkpoint(checkpoint):
text_model_dict = {}
if "cond_stage_model.model.text_projection" in checkpoint:
d_model = int(checkpoint["cond_stage_model.model.text_projection"].shape[0])
else:
d_model = 1024
text_model_dict["text_model.embeddings.position_ids"] = text_model.text_model.embeddings.get_buffer("position_ids")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment