Repeat Images π₯π ₯π π ’
Repeat Images
- images
- IMAGE
- count
Repeat Images (class name VHS_DuplicateImages) tacks copies of an image batch onto itself so the sequence repeats. Feed it a batch and a multiplier of 3 and you get that batch back-to-back three times. In video terms: take a short loop and make it longer by repeating it, or turn a single still into a run of identical frames.
Simple node, but it solves a real "the counts don't line up" problem that comes up constantly once you're stacking frames.
Why you'd reach for it
Two situations come up again and again. First, padding: some node downstream expects a specific frame count, and you're a few frames short - repeat the batch to reach the length you need. Second, holding a still: you've got one image and a video pipeline that wants N frames of it (a static intro card, a frozen last frame, a reference held constant across a clip). Multiply a single image by N and you've got your held shot.
It also matches frame counts between tracks. If your mask or latent stack is a multiple longer than your image batch, repeating the images to match is often exactly what an alignment step needs.
How it works
It concatenates the input onto itself multiply_by times along the frame axis. The output length is simply the input length times the multiplier - the node even hands you that number as a count output so you don't have to compute it. A multiplier of 1 (the default) is a pass-through: no change.
Inputs and outputs
- images (IMAGE) - the batch to repeat.
- multiply_by (INT, default 1, minimum 1) - how many total copies you end up with. 1 means unchanged; 2 doubles; 3 triples.
Outputs:
- IMAGE - the repeated batch.
- count (INT) - the new length (input length Γ
multiply_by), useful for wiring into whatever consumes the result.
Installing it
On comfy.icu, VideoHelperSuite is already installed - the node's ready.
Locally: ComfyUI Manager β search ComfyUI-VideoHelperSuite β install β restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite
then restart ComfyUI.
Common issues
Understand what "repeat" means here: it's the whole batch, appended. Multiply a 4-frame batch by 3 and you get 0,1,2,3,0,1,2,3,0,1,2,3 - twelve frames, three cycles. It does not interleave (0,0,0,1,1,1β¦). If you wanted each frame held in place rather than the sequence looped, this isn't that node.
Second, watch your memory. Repeating a big image batch multiplies the frame count for real, and everything downstream now processes that many frames - a 3Γ on a long, high-res clip is a genuine VRAM and time cost, not a free trick.
If the node doesn't show up at all, that's VideoHelperSuite failing to import (ffmpeg or a NumPy version clash); check the startup log and reinstall through Manager.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| images | IMAGE | β | |
| multiply_by | INT | 11β9007199254740991 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | β |
| count | INT | β |