Nodes/Comfyui-LG_GroupExecutor/🎈List-Mask-Repeater
ComfyUI Node

🎈List-Mask-Repeater

Duplicate each mask N times to match a stretched image batch

By LAOGOU-666·Created about a year ago·Updated 7 months ago· 227
🎈List-Mask-Repeater
  • masks
  • masks
repeat_times1

The mask counterpart to ImageListRepeater: take a MASK batch or list, repeat each mask N times, hand back the stretched list. [M1, M2] × 3 becomes [M1, M1, M1, M2, M2, M2]. If you've just repeated your images to hold keyframes for a few frames each, this is the node that keeps the mask list the same length so your composite or inpaint step doesn't fall out of sync.

It's a utility in Comfyui-LG_GroupExecutor, LAOGOU-666's small pack - dependency-free, no models, and about as thin a node as you'll find here. There isn't much to say about it that isn't already true of the image version, so let's keep this short.

How it works

Identical to ImageListRepeater with one fewer dimension. It accepts either a batched [B, H, W] tensor or a list of masks, appends each one repeat_times times (1–100), and returns the result as a MASK list. Log lines report the count in and out.

Inputs & outputs

  • masks (MASK) - batch or list in.
  • repeat_times (INT, 1–100) - copies per mask.

Output: masks (MASK list).

Install

cd ComfyUI/custom_nodes
git clone https://github.com/LAOGOU-666/Comfyui-LG_GroupExecutor

or ComfyUI Manager → "Comfyui-LG_GroupExecutor", then restart.

Small print

  • Keep repeat counts in sync. Run the image repeater and mask repeater with the same value so the two lists stay index-aligned; a mismatch silently shifts your masks.
  • Empty input → empty list.
  • The output is a list, so make sure whatever you feed it downstream accepts a list (OUTPUT_IS_LIST is set on the node).
Category🎈LAOGOU/Group

Inputs (2)

NameTypeDefaultDescription
masksMASK
repeat_timesINT11–100每张遮罩重复的次数

Outputs (1)

NameTypeDescription
masksMASK