Nodes/MultiBand/Rename Multiband Channels
ComfyUI Node

Rename Multiband Channels

Names matter more than you think

By PozzettiAndrea·Created 9 months ago·Updated 21 days ago· 5
Rename Multiband Channels
  • multiband
  • multiband
channel_names

Rename Multiband Channels does one thing: it changes the labels on a MULTIBAND_IMAGE's channels and hands the same data back. No pixels touched, no reordering, no resizing - this is pure metadata surgery. It feels like the pack's most skippable node until you realize that in this pack, names are load-bearing.

Two features key off channel names. Select Multiband Channels accepts names as an alternative to indices (R,G,B instead of 0,1,2), and Multiband to Masks has an auto_detect_masks mode that finds every channel with "mask" in its name. If your channels came out of a conversion with generic names - input_1_R, channel_3, that kind of thing - Rename is how you fix them so those nodes behave. The names also survive a save/load round-trip through .npz or .tiff, which is exactly why you'd want them meaningful: open the file next month and the channels should say something.

How it works

You give it the multiband and a comma-separated list of new names. It replaces the channel names in order - first name to channel 0, second to channel 1, and so on. If you supply fewer names than there are channels, the leftovers get padded with channel_N; if you supply more, the extras are truncated. Keep the count matching and everything stays tidy.

The inputs

  • multiband - required, any MULTIBAND_IMAGE.
  • channel_names - required, comma-separated new names. There's no "undo" widget, so type carefully - though since it's just metadata, you can rename again as many times as you like.

Output is a multiband with the same samples, the same metadata, only the labels changed.

Installing the pack

Part of ComfyUI-Multiband. ComfyUI Manager → search "ComfyUI-Multiband" → Install → restart. Manual:

cd ComfyUI/custom_nodes
git clone https://github.com/PozzettiAndrea/ComfyUI-Multiband.git
pip install -r ComfyUI-Multiband/requirements.txt

numpy, torch, tifffile - same story as every node here, no models to fetch.

A naming convention worth adopting

If your stack is a mix of masks and other data, name the masks so auto_detect_masks can find them later - seg_person, seg_car, sky_mask all work. It turns "remember which channel was which" into a solved problem, and it's the difference between a saved .npz you can hand to someone else and one that only makes sense to you. Rename is a two-second node that pays for itself the first time you reopen a stack and don't have to guess.

Categorymultiband/operations

Inputs (2)

NameTypeDefaultDescription
multibandMULTIBAND_IMAGE
channel_namesSTRINGComma-separated new channel names

Outputs (1)

NameTypeDescription
multibandMULTIBAND_IMAGE