Nodes/pre_cfg_comfy_nodes_for_ComfyUI/Individual channel selector
ComfyUI Node

Individual channel selector

Don't scroll 128 toggles — pick one channel with three numbers

By Extraltodeus·Created 2 years ago·Updated about a year ago· 66
Individual channel selector
    • CHANS
    excludefalse
    selected_channel1
    total_channels4

    The channel selectors in this pack are a wall of toggles, and if all you need is to isolate one latent channel, that wall is pure busywork. Individual channel selector is the compact alternative: instead of 128 checkboxes you get three numbers, and it produces the same CHANS output that plugs into Pre CFG automatic scale's channels_selection input. Same job, a tenth of the clicking.

    Here's what the three inputs do:

    • selected_channel (default 1, range 1–128) - which channel you care about. Note it's 1-indexed, so channel 1 is the same as channel_0 on the toggle-based selectors.
    • total_channels (default 4) - how many channels your model's latent actually has. Set this to match your model; SDXL and SD 1.5 use 4.
    • exclude (default off) - whether the selected channel is the one left out, rather than the only one left in. Flip this on and you get the inverse: every channel active except the one you named.

    That exclude toggle is the reason this node exists. The common diagnostic move in this pack's workflow is "automatic CFG everywhere except channel X" - the channel causing your color cast or recurring artifact. With the 4-channel selector that's three toggles flipped. With the 128-channel selector it's 127 toggles flipped, which is insane. Here it's: set selected_channel to X, leave total_channels at your model's count, turn exclude on. Done.

    As with every selector in the family, the node does no computation of its own - it emits a boolean list describing channel intent, and that list only matters when something consumes it. In practice that's the channels_selection input on Pre CFG automatic scale, which then skips the excluded channels during its per-channel normalization. Remember the list is 1-indexed on the channel number but the toggle-based selectors label theirs channel_0 first - a classic off-by-one trap if you're cross-referencing them, so double-check which numbering you're thinking in.

    The base behavior is shared with the whole selector family, so the CHANS output is interchangeable regardless of which selector you use. For day-to-day work, most people end up on this node even on wide-latent models, precisely because isolating a single channel is the operation you actually do.

    Install with the rest of the pack:

    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 the pack's own, no model downloads.

    It's a tiny node that quietly makes the channel-selection feature usable. If you've ever eyed the 128-channel selector and sighed, this is your out.

    Categorymodel_patches/Pre CFG/channels_selectors

    Inputs (3)

    NameTypeDefaultDescription
    excludeBOOLEANfalse
    selected_channelINT11–128
    total_channelsINT41–128

    Outputs (1)

    NameTypeDescription
    CHANSCHANS