EasyCascadeKsampler¶
Documentation¶
- Class name:
easy cascadeKSampler
- Category:
EasyUse/Sampler
- Output node:
True
The easy cascadeKSampler
node facilitates the application of a cascading sampling process, simplifying the integration and execution of multiple sampling stages within a single workflow. This node is designed to streamline complex sampling operations, making it easier for users to apply advanced sampling techniques with minimal configuration.
Input types¶
Required¶
pipe
- Specifies the pipeline configuration for the cascading sampling process, indicating the sequence of operations and transformations to be applied.
- Comfy dtype:
PIPE_LINE
- Python dtype:
str
image_output
- Determines the output format for the images generated by the sampling process, including options for hiding, previewing, saving, or a combination of these actions.
- Comfy dtype:
COMBO[STRING]
- Python dtype:
str
link_id
- A unique identifier used to link the output of the sampling process with other processes or storage locations.
- Comfy dtype:
INT
- Python dtype:
int
save_prefix
- A prefix added to the filenames of saved images, allowing for organized storage and easy retrieval.
- Comfy dtype:
STRING
- Python dtype:
str
Optional¶
model_c
- An optional parameter allowing the specification of a custom model configuration for the sampling process, providing flexibility in choosing different generative models.
- Comfy dtype:
MODEL
- Python dtype:
str
Output types¶
pipe
- Comfy dtype:
PIPE_LINE
- Outputs the modified pipeline configuration after the cascading sampling process, reflecting the applied transformations and operations.
- Python dtype:
str
- Comfy dtype:
image
- Comfy dtype:
IMAGE
- Provides the images resulting from the cascading sampling process, which can be used for further processing or analysis.
- Python dtype:
str
- Comfy dtype:
Usage tips¶
- Infra type:
CPU
- Common nodes: unknown
Source code¶
class samplerCascadeSimple:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {"required":
{"pipe": ("PIPE_LINE",),
"image_output": (["Hide", "Preview", "Save", "Hide&Save", "Sender", "Sender&Save"], {"default": "Preview"}),
"link_id": ("INT", {"default": 0, "min": 0, "max": sys.maxsize, "step": 1}),
"save_prefix": ("STRING", {"default": "ComfyUI"}),
},
"optional": {
"model_c": ("MODEL",),
},
"hidden":
{"tile_size": "INT", "prompt": "PROMPT", "extra_pnginfo": "EXTRA_PNGINFO", "my_unique_id": "UNIQUE_ID",
"embeddingsList": (folder_paths.get_filename_list("embeddings"),)
}
}
RETURN_TYPES = ("PIPE_LINE", "IMAGE",)
RETURN_NAMES = ("pipe", "image",)
OUTPUT_NODE = True
FUNCTION = "run"
CATEGORY = "EasyUse/Sampler"
def run(self, pipe, image_output, link_id, save_prefix, model_c=None, tile_size=None, prompt=None, extra_pnginfo=None, my_unique_id=None, force_full_denoise=False, disable_noise=False):
return samplerCascadeFull().run(pipe, None, None,None, None,None,None,None, image_output, link_id, save_prefix,
None, None, None, model_c, tile_size, prompt, extra_pnginfo, my_unique_id, force_full_denoise, disable_noise)