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

Make clipsave work with more TE models. (#7908)

This commit is contained in:
comfyanonymous
2025-05-02 02:15:32 -07:00
committed by GitHub
parent 8d0661d0ba
commit ff99861650

View File

@@ -276,7 +276,7 @@ class CLIPSave:
comfy.model_management.load_models_gpu([clip.load_model()], force_patch_weights=True)
clip_sd = clip.get_sd()
for prefix in ["clip_l.", "clip_g.", ""]:
for prefix in ["clip_l.", "clip_g.", "clip_h.", "t5xxl.", "pile_t5xl.", "mt5xl.", "umt5xxl.", "t5base.", "gemma2_2b.", "llama.", "hydit_clip.", ""]:
k = list(filter(lambda a: a.startswith(prefix), clip_sd.keys()))
current_clip_sd = {}
for x in k: