Fix Dual Clip. Update Flux example.
This commit is contained in:
File diff suppressed because one or more lines are too long
+2
-4
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user