Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

improve: add descriptions for clip loaders (#5576)

Dr.Lt.Data2d28b0b4790e
diff --git a/comfy_extras/nodes_sd3.py b/comfy_extras/nodes_sd3.py
index 91c60dea2..bbdedef79 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 fadcf9aa5..ea1b3faab 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)