Select Batch v2

Select_Batch_v2

功能: 返回指定批次编号处的图像,第1张编号为0,可以任意重复和排列组合 指定的批次编号可按一定规则处理 输入参数: indexes:若为空则为全选,可识别中文逗号。 loop:将选择的批次复制指定次数 loop_method:批次复制方式,tile直接增加,repeat每个编号往后复制loop个 limit:超出范围的编号处理方式,Clamp钳制到最大批次内,Loop在最大批次内循环,ignore忽略 images/masks:图像遮罩批次,批次数量可以不相同 输出参数: select_img/exclude_img:选择/反选的图像(反选的将不进行批次处理) select_mask/exclude_mask:反选的遮罩(反选的将不进行批次处理) img_order/mask_order:选择的图像/遮罩批次原编号数据 Functionality: Return the image at the specified batch number, with the first image numbered as 0, allowing for arbitrary repetition and combination. The specified batch numbers can be processed according to certain rules. Input parameters: indexes: If empty, select all; capable of recognizing Chinese commas. loop: The number of times to duplicate the selected batches. loop_method: The method of batch duplication, with 'tile' directly adding, and 'repeat' copying each number backward by the loop count. limit: The handling method for numbers out of range, 'Clamp' restricts to the maximum batch, 'Loop' cycles within the maximum batch, and 'ignore' disregards them. images/masks: Image/mask batches, which can have varying quantities. Output parameters: select_img/exclude_img: Selected/inverse-selected images (inverse-selected will not undergo batch processing). select_mask/exclude_mask: Inverse-selected masks (inverse-selected will not undergo batch handling). img_order/mask_order: The original batch number data of the selected images/masks.

Pack: ComfyUI-WJNodes

custom_nodes.ComfyUI-WJNodes

Inputs (6)

NameTypeRequired
indexesSTRINGrequired
loopINTrequired
loop_methodCOMBOrequired
limitCOMBOrequired
imagesIMAGEoptional
masksMASKoptional

Outputs (6)

NameType
select_imgIMAGE
exclude_imgIMAGE
select_maskMASK
exclude_maskMASK
img_orderLIST
mask_orderLIST