mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-06-23 00:09:32 +08:00
Update loaders category
This commit is contained in:
parent
f57d84ab69
commit
fed21e38cf
@ -11,8 +11,9 @@ class QuadrupleCLIPLoader(io.ComfyNode):
|
|||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
return io.Schema(
|
return io.Schema(
|
||||||
node_id="QuadrupleCLIPLoader",
|
node_id="QuadrupleCLIPLoader",
|
||||||
category="advanced/loaders",
|
display_name="Load CLIP (Quadruple)",
|
||||||
description="[Recipes]\n\nhidream: long clip-l, long clip-g, t5xxl, llama_8b_3.1_instruct",
|
category="model/loaders",
|
||||||
|
description="Recipes:\nhidream: long clip-l, long clip-g, t5xxl, llama_8b_3.1_instruct",
|
||||||
inputs=[
|
inputs=[
|
||||||
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
|
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
|
||||||
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
|
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
|
||||||
|
|||||||
@ -168,9 +168,9 @@ class LTXAVTextEncoderLoader(io.ComfyNode):
|
|||||||
def define_schema(cls) -> io.Schema:
|
def define_schema(cls) -> io.Schema:
|
||||||
return io.Schema(
|
return io.Schema(
|
||||||
node_id="LTXAVTextEncoderLoader",
|
node_id="LTXAVTextEncoderLoader",
|
||||||
display_name="LTXV Audio Text Encoder Loader",
|
display_name="Load LTXV Audio Text Encoder",
|
||||||
category="advanced/loaders",
|
category="model/loaders",
|
||||||
description="[Recipes]\n\nltxav: gemma 3 12B",
|
description="Recipes:\nltxav: gemma 3 12B",
|
||||||
inputs=[
|
inputs=[
|
||||||
io.Combo.Input(
|
io.Combo.Input(
|
||||||
"text_encoder",
|
"text_encoder",
|
||||||
|
|||||||
@ -232,7 +232,7 @@ class ModelPatchLoader:
|
|||||||
FUNCTION = "load_model_patch"
|
FUNCTION = "load_model_patch"
|
||||||
EXPERIMENTAL = True
|
EXPERIMENTAL = True
|
||||||
|
|
||||||
CATEGORY = "advanced/loaders"
|
CATEGORY = "model/loaders"
|
||||||
|
|
||||||
def load_model_patch(self, name):
|
def load_model_patch(self, name):
|
||||||
model_patch_path = folder_paths.get_full_path_or_raise("model_patches", name)
|
model_patch_path = folder_paths.get_full_path_or_raise("model_patches", name)
|
||||||
@ -512,7 +512,7 @@ class ZImageFunControlnet(QwenImageDiffsynthControlnet):
|
|||||||
},
|
},
|
||||||
"optional": {"image": ("IMAGE",), "inpaint_image": ("IMAGE",), "mask": ("MASK",)}}
|
"optional": {"image": ("IMAGE",), "inpaint_image": ("IMAGE",), "mask": ("MASK",)}}
|
||||||
|
|
||||||
CATEGORY = "advanced/loaders/zimage"
|
CATEGORY = "model/patch/z-image"
|
||||||
|
|
||||||
class UsoStyleProjectorPatch:
|
class UsoStyleProjectorPatch:
|
||||||
def __init__(self, model_patch, encoded_image):
|
def __init__(self, model_patch, encoded_image):
|
||||||
|
|||||||
@ -13,8 +13,9 @@ class TripleCLIPLoader(io.ComfyNode):
|
|||||||
def define_schema(cls):
|
def define_schema(cls):
|
||||||
return io.Schema(
|
return io.Schema(
|
||||||
node_id="TripleCLIPLoader",
|
node_id="TripleCLIPLoader",
|
||||||
category="advanced/loaders",
|
display_name="Load CLIP (Triple)",
|
||||||
description="[Recipes]\n\nsd3: clip-l, clip-g, t5",
|
category="model/loaders",
|
||||||
|
description="Recipes:\nsd3: clip-l, clip-g, t5",
|
||||||
inputs=[
|
inputs=[
|
||||||
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
|
io.Combo.Input("clip_name1", options=folder_paths.get_filename_list("text_encoders")),
|
||||||
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
|
io.Combo.Input("clip_name2", options=folder_paths.get_filename_list("text_encoders")),
|
||||||
|
|||||||
9
nodes.py
9
nodes.py
@ -949,7 +949,7 @@ class UNETLoader:
|
|||||||
RETURN_TYPES = ("MODEL",)
|
RETURN_TYPES = ("MODEL",)
|
||||||
FUNCTION = "load_unet"
|
FUNCTION = "load_unet"
|
||||||
|
|
||||||
CATEGORY = "advanced/loaders"
|
CATEGORY = "model/loaders"
|
||||||
|
|
||||||
def load_unet(self, unet_name, weight_dtype):
|
def load_unet(self, unet_name, weight_dtype):
|
||||||
model_options = {}
|
model_options = {}
|
||||||
@ -977,9 +977,9 @@ class CLIPLoader:
|
|||||||
RETURN_TYPES = ("CLIP",)
|
RETURN_TYPES = ("CLIP",)
|
||||||
FUNCTION = "load_clip"
|
FUNCTION = "load_clip"
|
||||||
|
|
||||||
CATEGORY = "advanced/loaders"
|
CATEGORY = "model/loaders"
|
||||||
|
|
||||||
DESCRIPTION = "[Recipes]\n\nstable_diffusion: clip-l\nstable_cascade: clip-g\nsd3: t5 xxl/ clip-g / clip-l\nstable_audio: t5 base\nmochi: t5 xxl\ncogvideox: t5 xxl (226-token padding)\ncosmos: old t5 xxl\nlumina2: gemma 2 2B\nwan: umt5 xxl\n hidream: llama-3.1 (Recommend) or t5\nomnigen2: qwen vl 2.5 3B\nlens: gpt-oss-20b\n pixeldit: gemma 2 2B elm"
|
DESCRIPTION = "Recipes:\nsd: clip-l\nstable cascade: clip-g\nsd3: t5 xxl / clip-g / clip-l\nstable audio: t5 base\nmochi: t5 xxl\ncogvideox: t5 xxl (226-token padding)\ncosmos: old t5 xxl\nlumina2: gemma 2 2B\nwan: umt5 xxl\nhidream: llama-3.1 (Recommend) or t5\nomnigen2: qwen vl 2.5 3B\nlens: gpt-oss-20b\npixeldit: gemma 2 2B elm"
|
||||||
|
|
||||||
def load_clip(self, clip_name, type="stable_diffusion", device="default"):
|
def load_clip(self, clip_name, type="stable_diffusion", device="default"):
|
||||||
clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION)
|
clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION)
|
||||||
@ -1007,7 +1007,7 @@ class DualCLIPLoader:
|
|||||||
|
|
||||||
CATEGORY = "model/loaders"
|
CATEGORY = "model/loaders"
|
||||||
|
|
||||||
DESCRIPTION = "[Recipes]\n\nsdxl: clip-l, clip-g\nsd3: clip-l, clip-g / clip-l, t5 / clip-g, t5\nflux: clip-l, t5\nhidream: at least one of t5 or llama, recommended t5 and llama\nhunyuan_image: qwen2.5vl 7b and byt5 small\nnewbie: gemma-3-4b-it, jina clip v2"
|
DESCRIPTION = "Recipes:\nsdxl: clip-l, clip-g\nsd3: clip-l, clip-g / clip-l, t5 / clip-g, t5\nflux: clip-l, t5\nhidream: at least one of t5 or llama, recommended t5 and llama\nhunyuan_image: qwen2.5vl 7b and byt5 small\nnewbie: gemma-3-4b-it, jina clip v2"
|
||||||
|
|
||||||
def load_clip(self, clip_name1, clip_name2, type, device="default"):
|
def load_clip(self, clip_name1, clip_name2, type, device="default"):
|
||||||
clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION)
|
clip_type = getattr(comfy.sd.CLIPType, type.upper(), comfy.sd.CLIPType.STABLE_DIFFUSION)
|
||||||
@ -2099,6 +2099,7 @@ NODE_DISPLAY_NAME_MAPPINGS = {
|
|||||||
"LoraLoader": "Load LoRA (Model and CLIP)",
|
"LoraLoader": "Load LoRA (Model and CLIP)",
|
||||||
"LoraLoaderModelOnly": "Load LoRA",
|
"LoraLoaderModelOnly": "Load LoRA",
|
||||||
"CLIPLoader": "Load CLIP",
|
"CLIPLoader": "Load CLIP",
|
||||||
|
"DualCLIPLoader": "Load CLIP (Dual)",
|
||||||
"ControlNetLoader": "Load ControlNet Model",
|
"ControlNetLoader": "Load ControlNet Model",
|
||||||
"DiffControlNetLoader": "Load ControlNet Model (diff)",
|
"DiffControlNetLoader": "Load ControlNet Model (diff)",
|
||||||
"StyleModelLoader": "Load Style Model",
|
"StyleModelLoader": "Load Style Model",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user