Nodes/pre_cfg_comfy_nodes_for_ComfyUI/Channel selector for 64 channels
ComfyUI Node

Channel selector for 64 channels

The selector for wide-latent models

By Extraltodeus·Created 2 years ago·Updated about a year ago· 66
Channel selector for 64 channels
    • CHANS
    channel_0true
    channel_1true
    channel_2true
    channel_3true
    channel_4true
    channel_5true
    channel_6true
    channel_7true
    channel_8true
    channel_9true
    channel_10true
    channel_11true
    channel_12true
    channel_13true
    channel_14true
    channel_15true
    channel_16true
    channel_17true
    channel_18true
    channel_19true
    channel_20true
    channel_21true
    channel_22true
    channel_23true
    channel_24true
    channel_25true
    channel_26true
    channel_27true
    channel_28true
    channel_29true
    channel_30true
    channel_31true
    channel_32true
    channel_33true
    channel_34true
    channel_35true
    channel_36true
    channel_37true
    channel_38true
    channel_39true
    channel_40true
    channel_41true
    channel_42true
    channel_43true
    channel_44true
    channel_45true
    channel_46true
    channel_47true
    channel_48true
    channel_49true
    channel_50true
    channel_51true
    channel_52true
    channel_53true
    channel_54true
    channel_55true
    channel_56true
    channel_57true
    channel_58true
    channel_59true
    channel_60true
    channel_61true
    channel_62true
    channel_63true

    If your model's noise predictions live in a 64-channel latent, the little 4-channel selector in this pack isn't going to reach. Channel selector for 64 channels is the version built for that world: sixty-four channel_0 through channel_63 toggles, all on by default, collapsing into one CHANS output. It's pure plumbing - no math, no model patch, just a description of which channels a downstream node should care about.

    The one consumer that matters is the channels_selection optional input on Pre CFG automatic scale. Feed the CHANS output there and the automatic scaling restricts itself to the channels you've left enabled. Flip one off and that channel is skipped by the auto-scale logic - which is the move when you've isolated a single latent channel responsible for a color cast or recurring artifact on your checkpoint. The pack's README is upfront that these nodes chain and that ordering is a personal-tuning affair; the selectors are the fine-grained dials that make the chaining surgical instead of blunt.

    The whole selector family - 4, 8, 16, 32, 64, 128 - is generated from a single base class, so behavior is identical across sizes. Sixty-four is firmly in "wide latent" territory, and it comes with a practical cost: a wall of checkboxes on your canvas. If you only care about a couple of channels, skip the wall entirely and use the pack's Individual channel selector, which does the same job with selected_channel, total_channels, and an exclude toggle. That's the version most people end up using day to day even on wide-latent models, because the selectors are really about isolating a few channels, not celebrating all of them.

    The one rule to respect: match the selector size to your model's actual channel count. The CHANS list doesn't validate against anything, so a mismatch just produces a list the consumer interprets as best it can. And remember - no selector does anything on its own. It needs to be plugged into a CHANS input to have a job.

    Install with the whole 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 models, no extra dependencies.

    It's the most imposing-looking node in the family and the least interesting in isolation. Wire it into automatic scale and suddenly all those toggles are the difference between "automatic CFG, everywhere" and "automatic CFG, exactly where I want it."

    Categorymodel_patches/Pre CFG/channels_selectors

    Inputs (64)

    NameTypeDefaultDescription
    channel_0BOOLEANtrue
    channel_1BOOLEANtrue
    channel_2BOOLEANtrue
    channel_3BOOLEANtrue
    channel_4BOOLEANtrue
    channel_5BOOLEANtrue
    channel_6BOOLEANtrue
    channel_7BOOLEANtrue
    channel_8BOOLEANtrue
    channel_9BOOLEANtrue
    channel_10BOOLEANtrue
    channel_11BOOLEANtrue
    channel_12BOOLEANtrue
    channel_13BOOLEANtrue
    channel_14BOOLEANtrue
    channel_15BOOLEANtrue
    channel_16BOOLEANtrue
    channel_17BOOLEANtrue
    channel_18BOOLEANtrue
    channel_19BOOLEANtrue
    channel_20BOOLEANtrue
    channel_21BOOLEANtrue
    channel_22BOOLEANtrue
    channel_23BOOLEANtrue
    channel_24BOOLEANtrue
    channel_25BOOLEANtrue
    channel_26BOOLEANtrue
    channel_27BOOLEANtrue
    channel_28BOOLEANtrue
    channel_29BOOLEANtrue
    channel_30BOOLEANtrue
    channel_31BOOLEANtrue
    channel_32BOOLEANtrue
    channel_33BOOLEANtrue
    channel_34BOOLEANtrue
    channel_35BOOLEANtrue
    channel_36BOOLEANtrue
    channel_37BOOLEANtrue
    channel_38BOOLEANtrue
    channel_39BOOLEANtrue
    channel_40BOOLEANtrue
    channel_41BOOLEANtrue
    channel_42BOOLEANtrue
    channel_43BOOLEANtrue
    channel_44BOOLEANtrue
    channel_45BOOLEANtrue
    channel_46BOOLEANtrue
    channel_47BOOLEANtrue
    channel_48BOOLEANtrue
    channel_49BOOLEANtrue
    channel_50BOOLEANtrue
    channel_51BOOLEANtrue
    channel_52BOOLEANtrue
    channel_53BOOLEANtrue
    channel_54BOOLEANtrue
    channel_55BOOLEANtrue
    channel_56BOOLEANtrue
    channel_57BOOLEANtrue
    channel_58BOOLEANtrue
    channel_59BOOLEANtrue
    channel_60BOOLEANtrue
    channel_61BOOLEANtrue
    channel_62BOOLEANtrue
    channel_63BOOLEANtrue

    Outputs (1)

    NameTypeDescription
    CHANSCHANS