Skip to content

Commit

Permalink
improve: add descriptions for clip loaders (#5576)
Browse files Browse the repository at this point in the history
  • Loading branch information
ltdrdata authored Nov 11, 2024
1 parent 8b275ce commit 2d28b0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions comfy_extras/nodes_sd3.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def INPUT_TYPES(s):

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)
Expand Down
4 changes: 4 additions & 0 deletions nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ def INPUT_TYPES(s):

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
Expand Down Expand Up @@ -930,6 +932,8 @@ def INPUT_TYPES(s):

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)
Expand Down

0 comments on commit 2d28b0b

Please sign in to comment.