ComfyUI Node
Latent Affine
A ComfyUI node in latent/adjust with 9 inputs and 2 outputs.
Latent Affine
- latent
- external_mask
- noise_options
- options
- latent
- mask
◄scale0.960►
◄bias0.000►
◄pattern▾►
◄temporal_mode▾►
◄seed0►
Categorylatent/adjust
Inputs (9)
| Name | Type | Default | Description |
|---|---|---|---|
| latent | LATENT | Input latent input to apply Affine to. | |
| scale | FLOAT | 0.9600–2 | Multiplicative factor applied. Examples: 1.0 = no change, <1 darkens, >1 amplifies features. Influence: controls gain in masked regions. |
| bias | FLOAT | 0.000-2–2 | Additive offset applied. Examples: 0.1 brightens, -0.1 darkens. Influence: shifts values in masked regions. |
| pattern | COMBO | Mask source. Procedural: white/pink/brown(red)/blue/violet(purple)/green/black (spectrally-shaped); cross_hatch (oriented gratings); highpass_white (Butterworth-shaped); ring_noise (narrow high-freq annulus); poisson_blue_mask (Poisson-disk distance field); worley_edges (cell boundaries); tile_oriented_lines (per-tile gratings); dot_screen_jitter (halftone dots with jitter); velvet (sparse impulses); perlin (smooth noise); checker/bayer (tiled); solid (constant alpha). Content-aware (from latent): detail_region (high texture/variance), smooth_region (low detail), edges_sobel, edges_laplacian. external_mask: use provided IMAGE directly. If an external mask is connected and pattern != external_mask, it gates the generated mask so the affine/noise only applies where this mask is 1. | |
| temporal_mode | COMBO | Static: one mask for all frames. Per-frame: vary mask over time.. | |
| seed | INT | 00–2147483647 | Random seed for procedural masks. |
| external_maskopt | IMAGE | External mask image [N,H,W,C]. If pattern='external_mask', this image (after threshold/invert/blur) is used as the mask. Otherwise, if connected, it gates the generated mask so the affine/noise only applies where this mask is 1. | |
| noise_optionsopt | DICT | DICT for pattern-specific params (e.g., poisson_*, worley_*, tile_line_*, dot_*). Applied AFTER 'options'. | |
| optionsopt | DICT | Base options DICT. Use for Common Options or the Full Options node. 'noise_options' will override overlapping keys from here. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | — |
| mask | MASK | — |