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 d25c76a commit c88b6c1Copy full SHA for c88b6c1
src/diffusers/loaders/single_file_utils.py
@@ -1447,7 +1447,7 @@ def convert_open_clip_checkpoint(
1447
text_proj_key = prefix + "text_projection"
1448
1449
if text_proj_key in checkpoint:
1450
- text_proj_dim = int(checkpoint[text_proj_key].shape[1])
+ text_proj_dim = int(checkpoint[text_proj_key].shape[0])
1451
elif hasattr(text_model.config, "hidden_size"):
1452
text_proj_dim = text_model.config.hidden_size
1453
else:
0 commit comments