ComfyUI Node
YC Image Accumulator
累积保存所有生成的图像,支持单张或批次输出。适合对比多次生成的结果。
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)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | 要累积的输入图像 | |
| selected_index | INT | -1-1–999 | 选择要输出的图像索引。-1表示最新图像,0表示第一张 |
| clear_galleryopt | BOOLEAN | false | 清空所有累积的图像 |
| max_imagesopt | INT | 301–100 | 最大累积图像数量,超过后会替换指定位置的图像 |
| update_positionopt | INT | -1-1–99 | 达到上限后,新图像替换的位置。-1=最后一张,0=第1张,1=第2张... |
| batch_startopt | INT | -1-1–99 | 批次输出起始索引。-1=单张输出(使用selected_index),0开始=批次输出 |
| batch_endopt | INT | -1-1–99 | 批次输出结束索引。例如:start=0,end=2输出3张(0,1,2) |
| align_modeopt | COMBO | largest | 批次对齐模式:first=第一张尺寸,largest=最大尺寸,smallest=最小尺寸 |
| pad_coloropt | STRING | #000000 | 扩图填充颜色(十六进制,如 #000000=黑色, #FFFFFF=白色, #808080=灰色) |
| save_to_outputopt | BOOLEAN | false | 是否将累积的图像也保存到output目录(持久化) |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| images | IMAGE | — |
| masks | MASK | — |