Set Accumulator (images)
Label your results, collect them by name, stop hand-wiring batches
- image
- image
Compare workflows have a recurring pain: you run five parallel branches, each producing a final image, and then you have to physically wire all five into a comparison node - and add a sixth wire every time you clone a branch. Set Accumulator (images) is the "drop a label on your result" end of a name-based collection system. You tag each branch's image with a name and an index; later, a Get Accumulator (images) with the same name gathers every matching Set into one batch - automatically, in index order, with a button press instead of a pile of wires.
How it works
The Set node is a deliberately boring pass-through: the image input comes in and goes right back out the image output unchanged. All the work is in the label. You give it a name (default IMAGES) and an index; copying the flow auto-increments the index for you. Later, a Get Accumulator with the same name has a Collect button that physically wires every matching Set's output into it - real links, created on the frontend, in index order - and batches them via the pack's Unlim Image Batch, reusing its mode / pad_color / skip_empty settings.
That's the key design decision: the wiring is plain links, not a hidden global. Execution and caching are completely standard - no runtime globals, no prompt magic. The Get node only wires active Sets, so a Set in Bypass or Mute drops out when you re-collect, and bypassing a branch doesn't corrupt the batch.
Inputs and output
image- the final image of the branch. Passes through untouched.name- the accumulator name. This is the contract: it must exactly match the Get node you intend to collect with. Keep it distinct per purpose (IMG_RESULTSvsTHUMBS).index- position in the collected batch, 0–9999. Auto-increments when you copy the node, which is the whole ergonomic win - clone the branch, the label follows.
The single image output is your pass-through, so you can keep the Set inline without breaking the existing flow.
Install
Part of the Kinburg-Nodes pack: ComfyUI Manager (search "Kinburg-Nodes") or git clone https://github.com/Kinburg/Kinburg-Nodes into custom_nodes, then restart. No extra dependencies.
The gotcha
The name matching is the failure mode. A typo or a case difference between Set and Get silently collects nothing - no error, just an empty batch. The Get node has a dropdown of defined names, which helps, but when images show up missing from a compare, check the names first. Also remember to press Collect again after adding or removing Set nodes - it rebuilds the links from scratch, and stale links are the other classic cause of a mysteriously incomplete batch. There's a sibling Get Accumulator (images list) if you'd rather collect into a list than a same-size batch.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| name | STRING | IMAGES | Accumulator name. A Get Accumulator (images) with the same name collects every Set that shares it. |
| index | INT | 00–9999 | Position in the collected batch. Auto-increments when you copy the node. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |