Channel selector for 8 channels
The mid-size channel selector
- CHANS
Every once in a while a node is just a bag of toggles with a very specific job, and Channel selector for 8 channels is exactly that. It emits a CHANS list - eight booleans, channel_0 through channel_7, all on by default - that tells this pack's pre-CFG nodes which latent channels to pay attention to. Nothing more, nothing less. If you're on a model whose predictions are 8 latent channels wide, this is the selector you reach for.
The intended consumer is the channels_selection optional input on Pre CFG automatic scale. Plug the CHANS output in there and the auto-scale node will only measure and normalize the channels you've left switched on, skipping the ones you've turned off. That matters because not all channels carry equal signal: structure, color, and fine detail land on different channels, and if one of them is causing a color cast or a texture artifact, you can simply remove it from the automatic CFG math while the others keep working.
It's also a surprisingly good learning tool. Fixed seed, toggles off one at a time, compare. Within a few renders you'll have a mental map of what each latent channel is responsible for on your checkpoint, which is knowledge that transfers to every other node in the pack that does per-channel work (the channel multiplier and the channel selectors in general).
The family logic is shared: this pack generates the 4/8/16/32/64/128-channel selectors from one base class, so they all behave identically, just with different numbers of toggles. Eight is the middle ground - it covers latent formats wider than SD 1.5/SDXL's four without burying you under the 128-toggle wall of the big one. Pick the size that matches your model's actual channel count; using a selector with more toggles than channels doesn't break anything, it just gives you redundant switches.
Installing is the pack standard - there's no separate download:
cd ComfyUI/custom_nodes
git clone https://github.com/Extraltodeus/pre_cfg_comfy_nodes_for_ComfyUI
or search pre_cfg_comfy_nodes_for_ComfyUI in ComfyUI Manager and restart. No dependencies beyond what the pack already needs, and no models.
The one thing to keep straight: the CHANS list is just a description of intent. If nothing in your graph consumes it, the node does nothing - it's not an effect by itself. Wire it to automatic scale (or any CHANS input) and it quietly does its one job.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| channel_0 | BOOLEAN | true | — |
| channel_1 | BOOLEAN | true | — |
| channel_2 | BOOLEAN | true | — |
| channel_3 | BOOLEAN | true | — |
| channel_4 | BOOLEAN | true | — |
| channel_5 | BOOLEAN | true | — |
| channel_6 | BOOLEAN | true | — |
| channel_7 | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| CHANS | CHANS | — |