Accumulation to List | Deforum
The escape hatch from Deforum's list type
- accumulation
- *
This is the node that makes the whole ACCUMULATION system usable outside its own family. The Deforum pack collects values into its private ACCUMULATION bundle (a dict wrapping a list), and that bundle only plugs into other Deforum accumulation nodes. Accumulation to List is the door out: it unwraps the bundle and emits the plain list, marked as a list output so any node that accepts a list of that type can consume it.
If you've ever wired an ACCUMULATION into a non-Deforum node and watched ComfyUI refuse the connection with a type error, this is the fix. It's the bridge between "collect inside a loop" and "do something with a real list afterward."
What it does
One input, one output:
accumulation- theACCUMULATIONbundle collected byAccumulate | Deforum.- Output:
*, flagged as a list (OUTPUT_IS_LIST). The items come out in the order they were accumulated, which matters for frame sequences - index zero is the first thing you appended.
The output's type follows the content: accumulate latents and you get a list of latents; accumulate floats and you get a float list, ready for Get Float From List | Deforum or any math node that takes a list.
The pattern that makes it worth having
The classic end-to-end: For Loop Open → generate a frame → Accumulate → For Loop Close, then Accumulation to List into whatever batch-processing node you actually wanted. That's how you turn "a loop that ran N times" into "an N-item list that behaves like every other list in ComfyUI."
One honest warning: the conversion is a copy, not a move - the list items still exist inside the bundle, so if you convert a multi-gigabyte latent accumulation you're now holding it twice in memory. Convert late, at the point where you're about to consume, not inside the loop.
Installing it
Ships in deforum-comfy-nodes, the official Deforum ComfyUI pack. Install via ComfyUI Manager (search "deforum" → comfyui-deforum) and restart, or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/deforum-art/deforum-comfy-nodes
Restart ComfyUI after cloning. No extra pip packages, no model files - the pack is plain Python over torch/numpy/Pillow. Known load-error cause if you've installed before: an orphaned deforum pip package shadowing the pack; pip uninstall deforum and restart.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| accumulation | ACCUMULATION | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| * | * | — |