Nodes/ComfyUI-YCNodes/YC Image Accumulator
ComfyUI Node

YC Image Accumulator

累积保存所有生成的图像,支持单张或批次输出。适合对比多次生成的结果。

By yichengup·Created 2 years ago·Updated 3 months ago· 47
YC Image Accumulator
  • image
  • images
  • masks
selected_index-1
clear_galleryfalse
max_images30
update_position-1
batch_start-1
batch_end-1
align_modelargest
pad_color#000000
save_to_outputfalse
CategoryYCNode/Image

Inputs (10)

NameTypeDefaultDescription
imageIMAGE要累积的输入图像
selected_indexINT-1-1–999选择要输出的图像索引。-1表示最新图像,0表示第一张
clear_galleryoptBOOLEANfalse清空所有累积的图像
max_imagesoptINT301–100最大累积图像数量,超过后会替换指定位置的图像
update_positionoptINT-1-1–99达到上限后,新图像替换的位置。-1=最后一张,0=第1张,1=第2张...
batch_startoptINT-1-1–99批次输出起始索引。-1=单张输出(使用selected_index),0开始=批次输出
batch_endoptINT-1-1–99批次输出结束索引。例如:start=0,end=2输出3张(0,1,2)
align_modeoptCOMBOlargest批次对齐模式:first=第一张尺寸,largest=最大尺寸,smallest=最小尺寸
pad_coloroptSTRING#000000扩图填充颜色(十六进制,如 #000000=黑色, #FFFFFF=白色, #808080=灰色)
save_to_outputoptBOOLEANfalse是否将累积的图像也保存到output目录(持久化)

Outputs (2)

NameTypeDescription
imagesIMAGE
masksMASK