color segmentation v2

color_segmentation_v2

功能: 1:用于将seg色块类输出图像批量转为遮罩 支持输入配置文件内的tag筛选,所有tag在加载配置节点可查看 2:使用遮罩来选择seg色块图内的对象 例如手绘遮罩或深度遮罩选择对象,注意输入尺寸要一致 说明: 1:单张没有查找到颜色时,输出全黑遮罩(打开invert_mask反转时全白) 2:部分批次没有查找到颜色时,对应顺序输出黑色,其它正常 3:合并遮罩merge_mask在输入为批次时,即使关闭也默认开启 4:选择遮罩select_mask功能目前仅支持单张,不支持批次 Function: 1: Used to batch convert SEG color block class output images into masks Support tag filtering within input configuration files, all tags can be viewed on the loading configuration node 2: Use masks to select objects within the SEG color block image For example, when selecting objects for hand drawn masks or depth masks, be sure to input consistent sizes explain: 1: When no color is found for a single sheet, output a full black mask (full white when inverted with invert_mask turned on) 2: When no color is found in some batches, black is outputted in the corresponding order, 、 while others are normal 3: When the merge mask is input as a batch, it is enabled by default even if it is turned off 4: The select_mask function currently only supports single masks and does not support batches

Pack: ComfyUI-WJNodes

custom_nodes.ComfyUI-WJNodes

Inputs (10)

NameTypeRequired
imageIMAGErequired
skip_thresholdFLOATrequired
Color_dictDICTrequired
merge_maskBOOLEANrequired
invert_maskBOOLEANrequired
output_typeCOMBOrequired
custom_keysSTRINGrequired
select_maskMASKoptional
invert_select_maskBOOLEANoptional
invert_selectBOOLEANoptional

Outputs (1)

NameType
maskMASK