From 2d28b0b4790e3f6c2287be49d9872419eadfe5bb Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" <128333288+ltdrdata@users.noreply.github.com> Date: Mon, 11 Nov 2024 19:37:23 +0900 Subject: [PATCH] improve: add descriptions for clip loaders (#5576) --- comfy_extras/nodes_sd3.py | 2 ++ nodes.py | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/comfy_extras/nodes_sd3.py b/comfy_extras/nodes_sd3.py index 91c60dea..bbdedef7 100644 --- a/comfy_extras/nodes_sd3.py +++ b/comfy_extras/nodes_sd3.py @@ -14,6 +14,8 @@ class TripleCLIPLoader: CATEGORY = "advanced/loaders" + DESCRIPTION = "[Recipes]\n\nsd3: clip-l, clip-g, t5" + def load_clip(self, clip_name1, clip_name2, clip_name3): clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1) clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2) diff --git a/nodes.py b/nodes.py index fadcf9aa..ea1b3faa 100644 --- a/nodes.py +++ b/nodes.py @@ -902,6 +902,8 @@ class CLIPLoader: CATEGORY = "advanced/loaders" + DESCRIPTION = "[Recipes]\n\nstable_diffusion: clip-l\nstable_cascade: clip-g\nsd3: t5 / clip-g / clip-l\nstable_audio: t5\nmochi: t5" + def load_clip(self, clip_name, type="stable_diffusion"): if type == "stable_cascade": clip_type = comfy.sd.CLIPType.STABLE_CASCADE @@ -930,6 +932,8 @@ class DualCLIPLoader: CATEGORY = "advanced/loaders" + DESCRIPTION = "[Recipes]\n\nsdxl: clip-l, clip-g\nsd3: clip-l, clip-g / clip-l, t5 / clip-g, t5\nflux: clip-l, t5" + def load_clip(self, clip_name1, clip_name2, type): clip_path1 = folder_paths.get_full_path_or_raise("text_encoders", clip_name1) clip_path2 = folder_paths.get_full_path_or_raise("text_encoders", clip_name2)