ComfyUI Node
Latent Channel Linear Transform
A ComfyUI node in latent/channel with 15 inputs and 1 output.
Latent Channel Linear Transform
- latent
- mask
- latent
◄operation▾►
◄seed0►
◄sign_flip_prob0.50►
◄tile_size0►
◄block_size0►
◄alpha0.50►
◄selection_modeall►
◄selection_fraction1.00►
◄selection_count0►
◄selection_orderhighest►
◄selection_indices►
◄mix1.00►
◄match_statsfalse►
Categorylatent/channel
Inputs (15)
| Name | Type | Default | Description |
|---|---|---|---|
| latent | LATENT | Latent to transform in channel-space. | |
| operation | COMBO | Linear channel-space transform to apply. | |
| seed | INT | 00–18446744073709550000 | Seed for deterministic channel selection and random transforms. |
| sign_flip_prob | FLOAT | 0.500–1 | Probability of flipping channel signs when using signed_permute. |
| tile_size | INT | 00–512 | When >0 and operation is signed_permute, apply a new permutation per tile (latent pixels). |
| block_size | INT | 00–4096 | Channels per orthogonal block. 0 means full rotation. |
| alpha | FLOAT | 0.50-4–4 | Shear strength for low_rank_shear. |
| 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 | — |