ComfyUI Node
Latent Channel Nonlinear Transform
A ComfyUI node in latent/channel with 16 inputs and 1 output.
Latent Channel Nonlinear Transform
- latent
- mask
- latent
◄operation▾►
◄seed0►
◄gate_strength1.00►
◄beta1.00►
◄blur_radius0►
◄quantize_step0.25►
◄clip_threshold2.00►
◄selection_modeall►
◄selection_fraction1.00►
◄selection_count0►
◄selection_orderhighest►
◄selection_indices►
◄mix1.00►
◄match_statsfalse►
Categorylatent/channel
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| latent | LATENT | Latent to transform in channel-space. | |
| operation | COMBO | Nonlinear channel-space transform to apply. | |
| seed | INT | 00–18446744073709550000 | Seed for deterministic gating/dropout patterns. |
| gate_strength | FLOAT | 1.000–10 | Slope for gate sigmoid (gate_* operations). |
| beta | FLOAT | 1.00-4–4 | Gate strength for gate_* operations. |
| blur_radius | INT | 00–64 | Blur radius for gate maps (latent pixels). |
| quantize_step | FLOAT | 0.250–10 | Step size for quantize operation. |
| clip_threshold | FLOAT | 2.000–10 | Clip threshold for clip_* operations. |
| selection_mode | COMBO | all | How to choose which channels are transformed. |
| selection_fraction | FLOAT | 1.000–1 | Fraction of channels to select when selection_count is 0. |
| selection_count | INT | 00–4096 | Exact number of channels to select (overrides selection_fraction when >0). |
| selection_order | COMBO | highest | Whether to pick high or low variance/roughness channels. |
| selection_indices | STRING | Comma-separated channel indices to select when selection_mode=indices. | |
| mix | FLOAT | 1.000–1 | Blend factor for the transformed channels (0=off, 1=full). |
| match_stats | BOOLEAN | false | Match per-channel mean/std after the transform (stabilizes latent stats). |
| maskopt | MASK | Optional mask to limit the transform to masked areas. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| latent | LATENT | — |