invert channel adv

invert_channel_adv

Functionality: Channel Reorganization: Includes inversion, creation, and replacement of channels, with batch support. Channel Operations: Channel separation, channel batching (can be used for calculations that only support masks). Batch Matching: If different batch sizes are input, it will attempt to automatically match batches (often fails). Input: (Resolution must be the same, batch support is available, try to keep batch sizes consistent) RGBA_or_RGB: Input image. If channels are also input, the corresponding channels of this image will be replaced. RGBA_Bath: Input RGBA channel batch, used to recombine RGBA channel batches into an image. If this is input, it will ignore the input of RGBA_or_RGB. RGB_Bath: Input RGB channel batch, used to recombine RGB channel batches into an image. If RGBA_or_RGB is input, it will replace the RGB channels of the input image. R/G/B/A: Input channels (all channels must be of the same size). If only channels are input without an image, an image will be created based on the channels. (Replacement Priority: Later channel data will replace earlier ones. R/G/B/A > RGB_Bath > RGBA_Bath > RGBA_or_RGB) Output: (All outputs are after replacement, inversion, and other operations) RGBA: Output RGBA image, batch support is available. Channels without data will be black. RGB: Output RGB image, batch support is available. R/G/B/A: Output individual RGBA channels. RGB_Bath: Output RGB channel batch, can be used for calculations that only support masks. RGBA_Bath: Output RGBA channel batch, can be used for calculations that only support masks. 功能: 通道重组:含反转/新建/替换通道,支持批次 通道操作:分离通道,转通道批次(可用于将图片进行仅支持遮罩的计算) 批次匹配:若输入了不同批次大小,会简单尝试自动匹配批次(多半会失败) 输入:(分辨率必须一样,支持批次,批次大小尽量一样) RGBA_or_RGB:输入图像,若同时输入通道,则该图像的对应通道会被替换, RGBA_Bath:输入RGBA通道批次,用于将RGBA通道批次重新组合为图像, 若此处有输入则会忽略RGBA_or_RGB输入 RGB_Bath:输入RGB通道批次,用于将RGB通道批次重新组合为图像, 若RGBA_or_RGB有输入则替换输入的图像rgb通道 R/G/B/A:输入通道(所有通道须大小一样), 若仅输入通道不输入图像则根据通道新建图像 (替换优先级:后面的通道数据会被前面的替换 R/G/B/A > RGB_Bath > RGBA_Bath > RGBA_or_RGB ) 输出:(所有输出均为替换/反转等操作后的) RGBA:输出RGBA图像,支持批次,若某通道无数据将为黑色 RGB:输出RGB图像,支持批次 R/G/B/A:输出RGBA单独的通道 RGB_Bath:输出RGB通道批次,可用于将图片进行仅支持遮罩的计算 RGBA_Bath:输出RGBA通道批次,可用于将图片进行仅支持遮罩的计算

Pack: ComfyUI-WJNodes

custom_nodes.ComfyUI-WJNodes

Inputs (12)

NameTypeRequired
invert_RBOOLEANrequired
invert_GBOOLEANrequired
invert_BBOOLEANrequired
invert_ABOOLEANrequired
deviceCOMBOrequired
RGBA_or_RGBIMAGEoptional
RGBA_BathMASKoptional
RGB_BathMASKoptional
RMASKoptional
GMASKoptional
BMASKoptional
AMASKoptional

Outputs (8)

NameType
RGBAIMAGE
RGBIMAGE
RMASK
GMASK
BMASK
AMASK
RGB_BathMASK
RGBA_BathMASK