ComfyUI Node
Ultimate Affine KSampler [Latent]
A ComfyUI node in latent/sampling with 24 inputs and 1 output.
Ultimate Affine KSampler [Latent]
- latents
- model
- positive
- negative
- affine_schedule
- external_mask
- options
- noise_options
- LATENT
◄seed0►
◄steps20►
◄cfg8.0►
◄sampler_nameeuler►
◄schedulersimple►
◄denoise0.20►
◄affine_interval1►
◄max_scale1.2000►
◄max_bias0.0000►
◄patternwhite_noise►
◄affine_seed0►
◄affine_seed_incrementfalse►
◄tile_width0►
◄tile_height0►
◄tile_overlap8►
◄batch_size0►
Categorylatent/sampling
Inputs (24)
| Name | Type | Default | Description |
|---|---|---|---|
| latents | LATENT | Input latents dict with key 'samples'. Supports [B,C,H,W] (images) or [B,C,F,H,W] (video). | |
| model | MODEL | Diffusion model to sample with. | |
| positive | CONDITIONING | Positive prompt conditioning. | |
| negative | CONDITIONING | Negative prompt conditioning. | |
| seed | INT | 00–18446744073709550000 | Seed for base sampler (noise). |
| steps | INT | 201–10000 | Number of denoising steps. |
| cfg | FLOAT | 8.00–100 | Classifier-free guidance scale. Can be a single float value or a per-step list. Short lists repeat last value. |
| sampler_name | COMBO | euler | Base sampler algorithm. |
| scheduler | COMBO | simple | Scheduler for sigma schedule. |
| denoise | FLOAT | 0.200–1 | Denoise fraction (<=1). |
| affine_interval | INT | 11–100 | Apply affine every N steps (1 = every step). |
| max_scale | FLOAT | 1.20000–2 | Scale at schedule peak: 1 + (max_scale-1)*t. |
| max_bias | FLOAT | 0.0000-2–2 | Bias at schedule peak: max_bias*t. |
| pattern | COMBO | white_noise | Affine mask pattern. |
| affine_seed | INT | 00–18446744073709550000 | Seed for affine mask generation. |
| affine_seed_increment | BOOLEAN | false | Increment affine seed after each application (temporal). |
| affine_schedule | DICT | WASAffineScheduleOptions dict. | |
| external_maskopt | IMAGE | Optional external mask to gate affine (adapted to latent space internally). | |
| optionsopt | DICT | Base options for Affine (common/full options). | |
| noise_optionsopt | DICT | Pattern-specific overrides layered onto 'options'. | |
| tile_widthopt | INT | 0-1–2048 | Latent-space sampling tile width. 0 disables tiling (single pass). -1 auto-calculates proportional tile size ≤128 latent pixels (1024px image space with 8x compression). |
| tile_heightopt | INT | 0-1–2048 | Latent-space sampling tile height. 0 disables tiling (single pass). -1 auto-calculates proportional tile size ≤128 latent pixels (1024px image space with 8x compression). |
| tile_overlapopt | INT | 80–256 | Latent-space overlap between sampling tiles. |
| batch_sizeopt | INT | 00–4096 | Process the batch dimension in chunks of this size to reduce peak VRAM. 0 = process all at once. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| LATENT | LATENT | — |