π Any Repeat
Duplicate one item into a list of N
- any
- any
Take one thing, get it back N times as a list. That's the whole node. Feed it an image, a prompt, a latent - anything - set a repeat count, and out comes a list with that item duplicated however many times you asked. The pack has an image-specific version ("repeat an image to create a list"); this is the type-agnostic one that does it for any data.
Where it earns its place is anywhere a downstream node iterates over a list and you want the same input applied to each iteration, or where two branches need to be the same length. Want to run the same prompt across a batch of five different seeds? Repeat the prompt to five. Need one reference image lined up against a list of poses? Repeat it to match.
How it works
A list in ComfyUI is a series of separate items the graph processes one at a time. Any Repeat builds one by taking your single input and emitting it repeat times as a list. It doesn't stack into a tensor - it produces the list kind that the pack's other list nodes (Any From List, Filter List) and ComfyUI's list iteration expect.
The inputs and outputs that matter
any(any type) - the item to duplicate.repeat(INT, default 1, minimum 1) - how many copies. At 1 you get a one-item list.
The output is any, a list of that item repeated repeat times.
How to install it
Comes with the SDVN pack. ComfyUI Manager, search SDVN_Comfy_node; or:
cd ComfyUI/custom_nodes
git clone https://github.com/StableDiffusionVN/SDVN_Comfy_node
pip install -r custom_nodes/SDVN_Comfy_node/requirements.txt
from the ComfyUI root, then restart. No models, no dependencies.
Common issues & troubleshooting
Repeating images eats memory. Duplicating a small string a thousand times is free; duplicating a full-resolution image or latent a thousand times is not. If you crank repeat high on heavy data, watch your RAM/VRAM. Repeat only as many as you actually need.
It's a list, not a batch. Same caveat as the pack's other list nodes - if a downstream node specifically wants a batched tensor, this list won't satisfy it. It's built to feed list iteration and the pack's list utilities.
Minimum is 1. You can't repeat zero times - the count floors at 1. If you want "sometimes none," gate the branch with a switch instead.
Matching two list lengths. A common use is aligning one input to another list's length. Just remember you have to set the count yourself; it doesn't auto-detect the other list's size. If you need it dynamic, drive repeat from a node that reports the other list's length.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| repeat | INT | 1 | β |
| any | * | β |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| any | * | β |