Skip to content

EasyKSampler (Tiled Decode)

Documentation

  • Class name: easy kSamplerTiled
  • Category: EasyUse/Sampler
  • Output node: True

The 'easy kSamplerTiled' node is designed to facilitate the generation of images in a tiled manner, leveraging a simplified interface for the kSampler process. This node abstracts the complexities involved in tiled image generation, making it accessible for users to create high-quality, tiled images efficiently.

Input types

Required

  • pipe
    • This input type represents the pipeline configuration for image generation, specifying the sequence of operations and models to be used.
    • Comfy dtype: PIPE_LINE
    • Python dtype: str
  • tile_size
    • Specifies the dimensions for each tile in the generated image, influencing the granularity of the tiling process.
    • Comfy dtype: INT
    • Python dtype: int
  • image_output
    • Determines the format and characteristics of the output image, including resolution and file type.
    • Comfy dtype: COMBO[STRING]
    • Python dtype: str
  • link_id
    • A unique identifier for linking generated tiles to specific requests or sessions, facilitating tracking and organization.
    • Comfy dtype: INT
    • Python dtype: str
  • save_prefix
    • A prefix added to the filenames of saved images, allowing for customized naming conventions.
    • Comfy dtype: STRING
    • Python dtype: str

Optional

  • model
    • Defines the model used for image generation, impacting the style and quality of the output.
    • Comfy dtype: MODEL
    • Python dtype: str

Output types

  • pipe
    • Comfy dtype: PIPE_LINE
    • Returns the updated pipeline configuration after the tiling process, reflecting any changes or adjustments made.
    • Python dtype: str
  • image
    • Comfy dtype: IMAGE
    • The final tiled image generated by the node, ready for use or further processing.
    • Python dtype: str

Usage tips

  • Infra type: GPU
  • Common nodes: unknown

Source code

class samplerSimpleTiled(samplerFull):

    def __init__(self):
        pass

    @classmethod
    def INPUT_TYPES(cls):
        return {"required":
                {"pipe": ("PIPE_LINE",),
                 "tile_size": ("INT", {"default": 512, "min": 320, "max": 4096, "step": 64}),
                 "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": ("MODEL",),
                },
                "hidden": {
                    "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 = "tiled"
    CATEGORY = "EasyUse/Sampler"

    def tiled(self, pipe, tile_size=512, image_output='preview', link_id=0, save_prefix='ComfyUI', model=None, prompt=None, extra_pnginfo=None, my_unique_id=None, force_full_denoise=False, disable_noise=False):

        return super().run(pipe, None, None,None,None,None, image_output, link_id, save_prefix,
                               None, model, None, None, None, None, None, None,
                               tile_size, prompt, extra_pnginfo, my_unique_id, force_full_denoise, disable_noise)