Nodes/AUN ComfyUI Nodes/Inputs Refine
ComfyUI Node

Inputs Refine

A comprehensive 'all-in-one' node for setting up a generation pipeline. It loads a checkpoint, creates a latent image, and prepares various parameters for sampling and saving, all in one place. This node also includes an optional refinement checkpoint and SpeedLoRA support for enhanced performance. The filename can be automatically generated from a prompt or manually specified, with flexible formatting options. Right-click → "Collapse Connections" or double-click to hide output labels and converge connection lines.

By loz2754·Created 7 months ago·Updated about a month ago· 4
Inputs Refine
    • MODEL
    • CLIP
    • VAE
    • MODEL REFINE
    • ckpt name
    • ckpt name refine
    • sampler
    • scheduler
    • cfg
    • steps
    • latent
    • width
    • height
    • seed
    • MainFolder
    • Filename
    • prefix
    • date format
    • batch size
    • name mode
    • speed lora ratio
    ckpt_name
    refine_ckptNone
    speed_lorafalse
    speed_lora_modelNone
    speed_lora_strength1.00
    speed_lora_full_bothfalse
    speed_lora_ratio1.00
    clip_skip-1
    sampler
    scheduler
    cfg2.0
    steps10
    width720
    height720
    aspect_ratio
    aspect_modeOriginal
    batch_size1
    seed0
    MainFolderMainFolder
    ManualNameName
    name_modefalse
    prefix
    date_format
    croptrue
    words1
    megapixels1.0
    multiple8
    auto_nameName
    CategoryAUN Nodes/Loaders+Inputs

    Inputs (28)

    NameTypeDefaultDescription
    ckpt_nameCOMBOThe checkpoint model file to load.
    refine_ckptCOMBONoneAn optional refinement checkpoint to apply after loading the main checkpoint. Select 'None' to skip.
    speed_loraBOOLEANfalseEnable or disable SpeedLoRA optimizations.
    speed_lora_modelCOMBONoneThe SpeedLoRA model to apply. Select 'None' to disable SpeedLoRA.
    speed_lora_strengthFLOAT1.000–3Multiplier applied to the selected SpeedLoRA weights.
    speed_lora_full_bothBOOLEANfalseApply the full SpeedLoRA strength to both the main and refine models.
    speed_lora_ratioFLOAT1.000–1Share of the SpeedLoRA strength applied to the main model. The refine model receives the remaining share.
    clip_skipINT-1-24–-1Number of last layers of CLIP to skip. -1 is a good default.
    samplerCOMBOThe sampling algorithm to use.
    schedulerCOMBOThe noise schedule to use.
    cfgFLOAT2.0-2–100Classifier-Free Guidance scale. Higher values increase prompt adherence.
    stepsINT101–10000Number of sampling steps.
    widthINT72064–8192Image width. Used when 'aspect_ratio' is 'custom'.
    heightINT72064–8192Image height. Used when 'aspect_ratio' is 'custom'.
    aspect_ratioCOMBOSelect a predefined aspect ratio or ratio to automatically set width and height.
    aspect_modeCOMBOOriginalRandom swaps dimensions 50% of the time, Swap forces a swap, Original keeps the original order.
    batch_sizeINT11–64Number of latent images to generate in a batch.
    seedINT00–18446744073709550000The random seed for generation.
    MainFolderSTRINGMainFolderThe main output folder for saved files.
    ManualNameSTRINGNameThe filename to use when 'name_mode' is set to Manual.
    name_modeBOOLEANfalseSwitch between automatic and manual filename modes.
    prefixSTRINGA prefix to add to the generated filename.
    date_formatCOMBOThe format for the date placeholder in filenames.
    cropBOOLEANtrueEnable or disable cropping the filename to a specified number of words.
    wordsINT11–10The number of words to keep from the start of the string.
    megapixelsFLOAT1.00.1–16Target total megapixels used when a ratio is selected.
    multipleINT88–128Nearest multiple to round computed resolution to. Used with ratio.
    auto_nameoptSTRINGNameAutomatic name input, typically from a prompt node, used when 'name_mode' is set to Auto.

    Outputs (21)

    NameTypeDescription
    MODELMODEL
    CLIPCLIP
    VAEVAE
    MODEL REFINEMODEL
    ckpt nameSTRING
    ckpt name refineSTRING
    sampler*
    scheduler*
    cfgFLOAT
    stepsINT
    latentLATENT
    widthINT
    heightINT
    seedINT
    MainFolderSTRING
    FilenameSTRING
    prefixSTRING
    date formatSTRING
    batch sizeINT
    name modeBOOLEAN
    speed lora ratioFLOAT