Nodes/ComfyUI-TJ_NODE/Images Compare Sheet - Queue Loop (TJ)
ComfyUI Node

Images Compare Sheet - Queue Loop (TJ)

Run a seed sweep, get one labelled comparison grid at the end

By designloves2·Created 4 months ago·Updated 3 days ago· 13
Images Compare Sheet - Queue Loop (TJ)
  • image
  • sheet
  • current_image
  • output_name
  • is_complete
  • collected_count
index1
total_count1
auto_setfalse
name_sourceINPUT
name_text
fallback_enabledtrue
auto_name_prefiximage
index_digits3
remove_extensiontrue
sheet_nameImages_Compare_Sheet
layout_modeGRID
auto_layouttrue
rows1
columns4
fill_directionROW_FIRST
padding8
show_labeltrue
label_positionBOTTOM
font_size24
label_height48
text_alignCENTER
text_color#FFFFFF
label_background_color#000000
resize_modePAD
cell_width0
cell_height0
sheet_background_color#000000
resetfalse
name

Images Compare Sheet - Queue Loop (TJ) is the node you put at the end of a queue-loop sweep so that instead of a folder full of loose images, you get one composited grid with labels - the classic "12 seeds, one sheet" deliverable. You wire it into a Queue Loop (TJ) setup, it collects each iteration's image as it arrives, and when the loop completes it stitches them into a single comparison sheet with per-cell labels. If you've ever manually assembled a grid in an image editor after a parameter sweep, this is the automation that removes that step entirely.

How it works

The node is driven by two numbers that map onto the loop's outputs: index (1-based, first queue is 1) and total_count (the loop's total run count - the tooltip explicitly says to connect Queue Loop's queue_count here). Each run, it receives image, names it (see below), stores it, and recomposites the accumulated set into a sheet.

Layout is flexible: layout_mode of GRID, HORIZONTAL, or VERTICAL, with auto_layout choosing sensible rows/columns automatically, or manual rows/columns. fill_direction decides row-major vs column-major ordering, padding spaces the cells, and resize_mode (PAD/FIT/CROP/NONE) controls how each image fits its cell. Labels come from name_source: INPUT (an optional name string input), TEXT (a fixed name_text), or AUTO (an auto-generated prefix + index, e.g. image_001). index_digits, remove_extension, font size, text/background colors are all there for polish.

The outputs tell you where you are: sheet (the composite IMAGE), current_image (this iteration's input), output_name (the computed label), is_complete (BOOLEAN - true when the loop is done), and collected_count (how many images have been gathered so far).

Inputs and outputs that matter

The three you must wire: image, index (from the loop's index), total_count (from the loop's queue_count). Everything else is style. The output you want at the end is sheet.

Install

ComfyUI Manager → Install Custom Nodes → search TJ_NODE, or:

cd ComfyUI/custom_nodes
git clone https://github.com/designloves2/ComfyUI-TJ_NODE

Restart ComfyUI. Nothing extra. Category: ✨ TJ_Node/Image.

The workflow shape

The intended graph: Queue Loop drives your sampler's seed (or LoRA index, or steps), its image output feeds this node, and its index/queue_count feed this node's bookkeeping. Save the final sheet when is_complete fires. Two practical notes: the node accumulates in-memory across the loop, so it assumes one continuous sweep (a reset toggle clears the buffer), and total_count mismatch is the classic failure - if the loop runs more passes than this node expects, the "complete" sheet appears early. Wire total_count from the loop itself and you sidestep that. If you're not running a Queue Loop, this node has no reason to exist - but if you are, it turns sweeps from "save 20 files, montage them by hand" into "one labeled sheet per run."

Category ✨ TJ_Node/Image

Inputs (30)

NameTypeDefaultDescription
imageIMAGE
indexINT11–999999Queue Loop의 1-based 인덱스. 첫 번째 큐는 1.
total_countINT11–999999Queue Loop의 총 실행 횟수. Queue Loop의 queue_count 출력을 연결하세요.
auto_setBOOLEANfalse
name_sourceCOMBOINPUT3 options: INPUT, TEXT, AUTO
name_textSTRING
fallback_enabledBOOLEANtrue
auto_name_prefixSTRINGimage
index_digitsINT31–8
remove_extensionBOOLEANtrue
sheet_nameSTRINGImages_Compare_Sheet
layout_modeCOMBOGRID3 options: GRID, HORIZONTAL, VERTICAL
auto_layoutBOOLEANtrue
rowsINT11–128
columnsINT41–128
fill_directionCOMBOROW_FIRST2 options: ROW_FIRST, COLUMN_FIRST
paddingINT80–256
show_labelBOOLEANtrue
label_positionCOMBOBOTTOM2 options: BOTTOM, TOP
font_sizeINT248–256
label_heightINT480–512
text_alignCOMBOCENTER3 options: LEFT, CENTER, RIGHT
text_colorSTRING#FFFFFF
label_background_colorSTRING#000000
resize_modeCOMBOPAD4 options: PAD, FIT, CROP, NONE
cell_widthINT00–16384
cell_heightINT00–16384
sheet_background_colorSTRING#000000
resetBOOLEANfalse
nameoptSTRING

Outputs (5)

NameTypeDescription
sheetIMAGE
current_imageIMAGE
output_nameSTRING
is_completeBOOLEAN
collected_countINT