The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
chore: Update nodes categories (#14674)
Alexis Rolland6e11828d109e
diff --git a/comfy_extras/nodes_cond.py b/comfy_extras/nodes_cond.pyindex b745a43af..c8091b7a4 100644--- a/comfy_extras/nodes_cond.py+++ b/comfy_extras/nodes_cond.py@@ -8,7 +8,8 @@ class CLIPTextEncodeControlnet(io.ComfyNode):def define_schema(cls) -> io.Schema:return io.Schema(node_id="CLIPTextEncodeControlnet",- category="experimental/conditioning",+ display_name="CLIP Text Encode (Controlnet)",+ category="model/conditioning",inputs=[io.Clip.Input("clip"),io.Conditioning.Input("conditioning"),@@ -35,11 +36,12 @@ class T5TokenizerOptions(io.ComfyNode):def define_schema(cls) -> io.Schema:return io.Schema(node_id="T5TokenizerOptions",- category="experimental/conditioning",+ display_name="T5 Tokenizer Options",+ category="model/conditioning",inputs=[io.Clip.Input("clip"),- io.Int.Input("min_padding", default=0, min=0, max=10000, step=1, advanced=True),- io.Int.Input("min_length", default=0, min=0, max=10000, step=1, advanced=True),+ io.Int.Input("min_padding", default=0, min=0, max=10000, step=1),+ io.Int.Input("min_length", default=0, min=0, max=10000, step=1),],outputs=[io.Clip.Output()],is_experimental=True,diff --git a/comfy_extras/nodes_custom_sampler.py b/comfy_extras/nodes_custom_sampler.pyindex c9d7e06fc..56ef5f526 100644--- a/comfy_extras/nodes_custom_sampler.py+++ b/comfy_extras/nodes_custom_sampler.py@@ -1070,7 +1070,7 @@ class AddNoise(io.ComfyNode):def define_schema(cls):return io.Schema(node_id="AddNoise",- category="experimental/custom_sampling/noise",+ category="model/sampling/noise",is_experimental=True,inputs=[io.Model.Input("model"),@@ -1120,7 +1120,7 @@ class ManualSigmas(io.ComfyNode):return io.Schema(node_id="ManualSigmas",search_aliases=["custom noise schedule", "define sigmas"],- category="experimental/custom_sampling",+ category="model/sampling/sigmas",is_experimental=True,inputs=[io.String.Input("sigmas", default="1, 0.5", multiline=False)diff --git a/comfy_extras/nodes_photomaker.py b/comfy_extras/nodes_photomaker.pyindex 8a2248572..72fad1673 100644--- a/comfy_extras/nodes_photomaker.py+++ b/comfy_extras/nodes_photomaker.py@@ -123,7 +123,8 @@ class PhotoMakerLoader(io.ComfyNode):def define_schema(cls):return io.Schema(node_id="PhotoMakerLoader",- category="experimental/photomaker",+ display_name="Load PhotoMaker Model",+ category="model/loaders",inputs=[io.Combo.Input("photomaker_model_name", options=folder_paths.get_filename_list("photomaker")),],@@ -149,7 +150,8 @@ class PhotoMakerEncode(io.ComfyNode):def define_schema(cls):return io.Schema(node_id="PhotoMakerEncode",- category="experimental/photomaker",+ display_name="PhotoMaker Encode",+ category="model/conditioning/photomaker",inputs=[io.Photomaker.Input("photomaker"),io.Image.Input("image"),diff --git a/comfy_extras/nodes_stable_cascade.py b/comfy_extras/nodes_stable_cascade.pyindex 6a78ffb47..ddfb4f2b0 100644--- a/comfy_extras/nodes_stable_cascade.py+++ b/comfy_extras/nodes_stable_cascade.py@@ -119,7 +119,7 @@ class StableCascade_SuperResolutionControlnet(io.ComfyNode):def define_schema(cls):return io.Schema(node_id="StableCascade_SuperResolutionControlnet",- category="experimental/stable_cascade",+ category="experimental/stable cascade",is_experimental=True,inputs=[io.Image.Input("image"),diff --git a/comfy_extras/nodes_triposplat.py b/comfy_extras/nodes_triposplat.pyindex 7bf4703fe..c892213e4 100644--- a/comfy_extras/nodes_triposplat.py+++ b/comfy_extras/nodes_triposplat.py@@ -143,7 +143,7 @@ class VAEDecodeTripoSplat(IO.ComfyNode):return IO.Schema(node_id="VAEDecodeTripoSplat",display_name="TripoSplat Decode",- category="3d/latent",+ category="model/latent/triposplat",description="Decode the sampled TripoSplat latent into a 3D gaussian splat. ""Modify the number of gaussians to vary the density.",inputs=[@@ -188,7 +188,7 @@ class TripoSplatSamplingPreview(IO.ComfyNode):return IO.Schema(node_id="TripoSplatSamplingPreview",display_name="TripoSplat Sampling Preview",- category="3d/latent",+ category="model/latent/triposplat",description="Patch the TripoSplat model for the standard Ksampler node to show a live decoded ""gaussian splat preview at each step.",inputs=[diff --git a/nodes.py b/nodes.pyindex 77c577b9a..9043a8d0a 100644--- a/nodes.py+++ b/nodes.py@@ -349,7 +349,7 @@ class VAEDecodeTiled:RETURN_TYPES = ("IMAGE",)FUNCTION = "decode"- CATEGORY = "experimental"+ CATEGORY = "model/latent"def decode(self, vae, samples, tile_size, overlap=64, temporal_size=64, temporal_overlap=8):if tile_size < overlap * 4:@@ -396,7 +396,7 @@ class VAEEncodeTiled:RETURN_TYPES = ("LATENT",)FUNCTION = "encode"- CATEGORY = "experimental"+ CATEGORY = "model/latent"def encode(self, vae, pixels, tile_size, overlap, temporal_size=64, temporal_overlap=8):t = vae.encode_tiled(pixels, tile_x=tile_size, tile_y=tile_size, overlap=overlap, tile_t=temporal_size, overlap_t=temporal_overlap)@@ -514,7 +514,7 @@ class SaveLatent:OUTPUT_NODE = True- CATEGORY = "experimental"+ CATEGORY = "model/latent"def save(self, samples, filename_prefix="ComfyUI", prompt=None, extra_pnginfo=None):full_output_folder, filename, counter, subfolder, filename_prefix = folder_paths.get_save_image_path(filename_prefix, self.output_dir)@@ -559,7 +559,7 @@ class LoadLatent:files = [f for f in os.listdir(input_dir) if os.path.isfile(os.path.join(input_dir, f)) and f.endswith(".latent")]return {"required": {"latent": [sorted(files), ]}, }- CATEGORY = "experimental"+ CATEGORY = "model/latent"RETURN_TYPES = ("LATENT", )FUNCTION = "load"@@ -2155,6 +2155,8 @@ NODE_DISPLAY_NAME_MAPPINGS = {"GLIGENTextBoxApply": "Apply GLIGEN Text Box","ConditioningZeroOut": "Conditioning Zero Out",# Latent+ "LoadLatent": "Load Latent",+ "SaveLatent": "Save Latent","VAEEncodeForInpaint": "VAE Encode (for Inpainting)","SetLatentNoiseMask": "Set Latent Noise Mask","VAEDecode": "VAE Decode",@@ -2189,7 +2191,6 @@ NODE_DISPLAY_NAME_MAPPINGS = {"ImageSharpen": "Sharpen Image","ImageScaleToTotalPixels": "Scale Image to Total Pixels","GetImageSize": "Get Image Size",- # experimental"VAEDecodeTiled": "VAE Decode (Tiled)","VAEEncodeTiled": "VAE Encode (Tiled)",}