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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| ckpt_name | COMBO | The checkpoint model file to load. | |
| refine_ckpt | COMBO | None | An optional refinement checkpoint to apply after loading the main checkpoint. Select 'None' to skip. |
| speed_lora | BOOLEAN | false | Enable or disable SpeedLoRA optimizations. |
| speed_lora_model | COMBO | None | The SpeedLoRA model to apply. Select 'None' to disable SpeedLoRA. |
| speed_lora_strength | FLOAT | 1.000–3 | Multiplier applied to the selected SpeedLoRA weights. |
| speed_lora_full_both | BOOLEAN | false | Apply the full SpeedLoRA strength to both the main and refine models. |
| speed_lora_ratio | FLOAT | 1.000–1 | Share of the SpeedLoRA strength applied to the main model. The refine model receives the remaining share. |
| clip_skip | INT | -1-24–-1 | Number of last layers of CLIP to skip. -1 is a good default. |
| sampler | COMBO | The sampling algorithm to use. | |
| scheduler | COMBO | The noise schedule to use. | |
| cfg | FLOAT | 2.0-2–100 | Classifier-Free Guidance scale. Higher values increase prompt adherence. |
| steps | INT | 101–10000 | Number of sampling steps. |
| width | INT | 72064–8192 | Image width. Used when 'aspect_ratio' is 'custom'. |
| height | INT | 72064–8192 | Image height. Used when 'aspect_ratio' is 'custom'. |
| aspect_ratio | COMBO | Select a predefined aspect ratio or ratio to automatically set width and height. | |
| aspect_mode | COMBO | Original | Random swaps dimensions 50% of the time, Swap forces a swap, Original keeps the original order. |
| batch_size | INT | 11–64 | Number of latent images to generate in a batch. |
| seed | INT | 00–18446744073709550000 | The random seed for generation. |
| MainFolder | STRING | MainFolder | The main output folder for saved files. |
| ManualName | STRING | Name | The filename to use when 'name_mode' is set to Manual. |
| name_mode | BOOLEAN | false | Switch between automatic and manual filename modes. |
| prefix | STRING | A prefix to add to the generated filename. | |
| date_format | COMBO | The format for the date placeholder in filenames. | |
| crop | BOOLEAN | true | Enable or disable cropping the filename to a specified number of words. |
| words | INT | 11–10 | The number of words to keep from the start of the string. |
| megapixels | FLOAT | 1.00.1–16 | Target total megapixels used when a ratio is selected. |
| multiple | INT | 88–128 | Nearest multiple to round computed resolution to. Used with ratio. |
| auto_nameopt | STRING | Name | Automatic name input, typically from a prompt node, used when 'name_mode' is set to Auto. |
Outputs (21)
| Name | Type | Description |
|---|---|---|
| MODEL | MODEL | — |
| CLIP | CLIP | — |
| VAE | VAE | — |
| MODEL REFINE | MODEL | — |
| ckpt name | STRING | — |
| ckpt name refine | STRING | — |
| sampler | * | — |
| scheduler | * | — |
| cfg | FLOAT | — |
| steps | INT | — |
| latent | LATENT | — |
| width | INT | — |
| height | INT | — |
| seed | INT | — |
| MainFolder | STRING | — |
| Filename | STRING | — |
| prefix | STRING | — |
| date format | STRING | — |
| batch size | INT | — |
| name mode | BOOLEAN | — |
| speed lora ratio | FLOAT | — |