Images Compare Sheet - Queue Loop (TJ)
Run a seed sweep, get one labelled comparison grid at the end
- image
- sheet
- current_image
- output_name
- is_complete
- collected_count
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."
Inputs (30)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| index | INT | 11–999999 | Queue Loop의 1-based 인덱스. 첫 번째 큐는 1. |
| total_count | INT | 11–999999 | Queue Loop의 총 실행 횟수. Queue Loop의 queue_count 출력을 연결하세요. |
| auto_set | BOOLEAN | false | — |
| name_source | COMBO | INPUT | 3 options: INPUT, TEXT, AUTO |
| name_text | STRING | — | |
| fallback_enabled | BOOLEAN | true | — |
| auto_name_prefix | STRING | image | — |
| index_digits | INT | 31–8 | — |
| remove_extension | BOOLEAN | true | — |
| sheet_name | STRING | Images_Compare_Sheet | — |
| layout_mode | COMBO | GRID | 3 options: GRID, HORIZONTAL, VERTICAL |
| auto_layout | BOOLEAN | true | — |
| rows | INT | 11–128 | — |
| columns | INT | 41–128 | — |
| fill_direction | COMBO | ROW_FIRST | 2 options: ROW_FIRST, COLUMN_FIRST |
| padding | INT | 80–256 | — |
| show_label | BOOLEAN | true | — |
| label_position | COMBO | BOTTOM | 2 options: BOTTOM, TOP |
| font_size | INT | 248–256 | — |
| label_height | INT | 480–512 | — |
| text_align | COMBO | CENTER | 3 options: LEFT, CENTER, RIGHT |
| text_color | STRING | #FFFFFF | — |
| label_background_color | STRING | #000000 | — |
| resize_mode | COMBO | PAD | 4 options: PAD, FIT, CROP, NONE |
| cell_width | INT | 00–16384 | — |
| cell_height | INT | 00–16384 | — |
| sheet_background_color | STRING | #000000 | — |
| reset | BOOLEAN | false | — |
| nameopt | STRING | — |
Outputs (5)
| Name | Type | Description |
|---|---|---|
| sheet | IMAGE | — |
| current_image | IMAGE | — |
| output_name | STRING | — |
| is_complete | BOOLEAN | — |
| collected_count | INT | — |