🔶 Preview Stacking
Watch your frame-by-frame animation build up live
- restart
- image
- IMAGE
When you're running Chaosaiart's frame-by-frame animation setup - one image generated per queue run, cached and fed back in as the next frame's img2img source - you're not watching a video render in real time, you're watching a queue of individual generations tick past one at a time. This node exists to make that less painful to monitor: it stacks each new frame's image into a running preview buffer as they come in, so you get a growing strip of what's been generated so far instead of just the single most recent image.
It's a small quality-of-life node rather than anything that touches your actual output - nothing here affects generation, it just gives you a live view while a long batch runs. Handy for catching a checkpoint swap or ControlNet window that fired at the wrong frame before you've burned through your whole queue waiting for it to finish.
Inputs and outputs
restart- required,RESTARTtype. Wire in a reset signal (from Chaosaiart'sconvertnode) so the preview buffer clears and starts fresh at the beginning of a new sequence, instead of carrying over frames from a previous run.image- requiredIMAGE, the current frame to add to the stack.Preview_Max- requiredINT, default 50, range 0–10000. Caps how many frames the preview holds at once - set it to roughly how long your sequence is, or lower if you just want to sanity-check the first stretch without the buffer growing indefinitely.- Output:
IMAGE- the stacked preview, which you'd typically send into a standard Preview Image or Save Image node to actually look at.
Installing it
ComfyUI Manager: Install via Git URL → https://github.com/chaosaiart/Chaosaiart-Nodes, the method the README documents directly. A title search for "Chaosaiart" should also find it.
Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/chaosaiart/Chaosaiart-Nodes
Linux (activate your venv first, if you use one):
pip install opencv-python
pip install tqdm
Windows: run the bundled Install_windows script instead. Restart ComfyUI afterward. No downloads needed - it's just stacking images you're already generating.
Common issues
Buffer keeps growing across unrelated runs. Without a restart signal wired in and actually firing at the start of a new sequence, the stack keeps accumulating frames from whatever you ran before - you'll see old frames mixed in with a new animation. Make sure your RESTART source (from convert) is actually triggering when you expect.
Memory grows with Preview_Max on long sequences. This node is holding images in memory to build the stack, not writing them to disk - if you set Preview_Max very high for a long batch, expect it to cost RAM proportionally. Bring it down if you just need to eyeball recent frames rather than the entire run.
Whole-pack import failures. All Chaosaiart nodes, this one included, share a single Python module - a failed opencv-python/tqdm install takes the entire pack offline. Check the ComfyUI startup console for an import error first.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| restart | RESTART | — | |
| image | IMAGE | — | |
| Preview_Max | INT | 500–10000 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |