We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 501d9de commit 251b1f1Copy full SHA for 251b1f1
src/diffusers/loaders/single_file_utils.py
@@ -1448,8 +1448,8 @@ def convert_open_clip_checkpoint(
1448
1449
if text_proj_key in checkpoint:
1450
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
+ elif hasattr(text_model.config, "hidden_dim"):
+ text_proj_dim = text_model.config.hidden_dim
1453
else:
1454
text_proj_dim = LDM_OPEN_CLIP_TEXT_PROJECTION_DIM
1455
0 commit comments