ComfyUI Node
Latent Affine Common Options
A ComfyUI node in latent/adjust with 16 inputs and 1 output.
Latent Affine Common Options
- options
◄mask_strength1.000►
◄threshold0.000►
◄invert_maskfalse►
◄sharpen_enablefalse►
◄sharpen_sigma0.80►
◄sharpen_amount0.30►
◄sharpen_threshold0.00►
◄blur_ksize0►
◄blur_sigma0.0►
◄clampfalse►
◄clamp_min-10.0►
◄clamp_max10.0►
◄frame_seed_stride9973►
◄compute_devicecpu►
◄device_index0►
◄solid_alpha1.000►
Categorylatent/adjust
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| mask_strength | FLOAT | 1.0000–2 | Scales mask intensity before applying scale/bias. |
| threshold | FLOAT | 0.0000–1 | Binarize mask if > 0. |
| invert_mask | BOOLEAN | false | Invert after threshold/blur. |
| sharpen_enable | BOOLEAN | false | Sharpen the generated noise/mask before threshold/blur using unsharp masking. Off by default. |
| sharpen_sigma | FLOAT | 0.800–8 | Sharpen radius (Gaussian sigma). 0 disables. Typical: 0.5-1.5. |
| sharpen_amount | FLOAT | 0.30-5–5 | Sharpen gain. 0 = none; 0.3 subtle; 1.0 strong. Negative softens (inverse). Extended range [-5,5] for stronger effects. |
| sharpen_threshold | FLOAT | 0.000–1 | Only enhance details where |orig-blur| exceeds this threshold. Helps avoid amplifying flat noise. |
| blur_ksize | INT | 00–51 | Gaussian blur kernel size (odd). |
| blur_sigma | FLOAT | 0.00–16 | Gaussian blur sigma. |
| clamp | BOOLEAN | false | Clamp output latent values to [min,max]. |
| clamp_min | FLOAT | -10.0-100–0 | Lower clamp bound when clamping is enabled. |
| clamp_max | FLOAT | 10.00–100 | Upper clamp bound when clamping is enabled. |
| frame_seed_stride | INT | 99731–100000 | Seed increment per frame when temporal mode is per_frame. |
| compute_device | COMBO | cpu | Where to generate procedural masks/noise. 'auto' prefers CUDA when available; otherwise CPU. |
| device_index | INT | 00–7 | CUDA device index when using GPU. |
| solid_alpha | FLOAT | 1.0000–1 | Solid mask constant alpha (0..1). 0 disables; 1 full mask. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| options | DICT | — |