Skip to content

Commit 251b1f1

Browse files
committed
update
1 parent 501d9de commit 251b1f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/loaders/single_file_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,8 +1448,8 @@ def convert_open_clip_checkpoint(
14481448

14491449
if text_proj_key in checkpoint:
14501450
text_proj_dim = int(checkpoint[text_proj_key].shape[0])
1451-
elif hasattr(text_model.config, "projection_dim"):
1452-
text_proj_dim = text_model.config.projection_dim
1451+
elif hasattr(text_model.config, "hidden_dim"):
1452+
text_proj_dim = text_model.config.hidden_dim
14531453
else:
14541454
text_proj_dim = LDM_OPEN_CLIP_TEXT_PROJECTION_DIM
14551455

0 commit comments

Comments
 (0)