Fix Dual Clip. Update Flux example.

This commit is contained in:
arcum42
2025-07-02 17:08:18 -07:00
parent 2db191d8f0
commit 463f186a19
3 changed files with 4 additions and 6 deletions
File diff suppressed because one or more lines are too long
+2 -4
View File
@@ -96,9 +96,7 @@ class Sage_CLIPSelector(ComfyNodeABC):
CATEGORY = "Sage Utils/selectors"
DESCRIPTION = "Returns a model_info output to pass to the construct metadata node or a model info node. (And hashes and pulls civitai info for the file.)"
def get_clip_info(self, clip_name, clip_type) -> tuple:
print(f"Loading CLIP model: {clip_name} with type {clip_type}")
info = mi.get_model_info_clips([clip_name], clip_type)
print(f"CLIP model info: {info}")
return info
class Sage_DualCLIPSelector(ComfyNodeABC):
@@ -121,8 +119,8 @@ class Sage_DualCLIPSelector(ComfyNodeABC):
CATEGORY = "Sage Utils/selectors"
DESCRIPTION = "Returns a model_info output to pass to the construct metadata node or a model info node. (And hashes and pulls civitai info for the file.)"
def get_clip_info(self, clip_name_1, clip_name_2) -> tuple:
info = mi.get_model_info_clips([clip_name_1, clip_name_2])
def get_clip_info(self, clip_name_1, clip_name_2, clip_type) -> tuple:
info = mi.get_model_info_clips([clip_name_1, clip_name_2], clip_type)
return info
class Sage_TripleCLIPSelector(ComfyNodeABC):
+1 -1
View File
@@ -121,7 +121,7 @@ def clip(clip_path, clip_type="stable_diffusion"):
elif num_of_clips == 2:
print(f"Loading dual CLIP models from {clip_path[0]} and {clip_path[1]} with type {clip_type}")
clipclip = DualCLIPLoader()
return clipclip.load_clip(clip_name=clip_path[0], clip_name2=clip_path[1], type=clip_type)[0]
return clipclip.load_clip(clip_name1=clip_path[0], clip_name2=clip_path[1], type=clip_type)[0]
elif num_of_clips == 3:
print(f"Loading triple CLIP models from {clip_path[0]}, {clip_path[1]}, and {clip_path[2]}")
clipclipclip = TripleCLIPLoader()