1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Make the text projection saved in the checkpoint the right format.

This commit is contained in:
comfyanonymous
2024-02-27 01:52:23 -05:00
parent 03c47fc0f2
commit b416be7d78
2 changed files with 5 additions and 1 deletions

View File

@@ -110,7 +110,7 @@ def clip_text_transformers_convert(sd, prefix_from, prefix_to):
tp = "{}text_projection".format(prefix_from)
if tp in sd:
sd["{}text_projection.weight".format(prefix_to)] = sd.pop(tp).transpose(0, 1)
sd["{}text_projection.weight".format(prefix_to)] = sd.pop(tp).transpose(0, 1).contiguous()
return sd