ComfyUI Node

Tensor Loop Close

A ComfyUI node in looping/accumulation with 5 inputs and 1 output.

By kijai·Created 5 months ago·Updated 2 months ago· 26
Tensor Loop Close
  • flow_control
  • processed
  • output
accumulatetrue
overlap
stopfalse
Categorylooping/accumulation

Inputs (5)

NameTypeDefaultDescription
flow_controlFLOW_CONTROL
processedCOMFY_MATCHTYPE_V3Output generated this iteration.
accumulateBOOLEANtrueWhen enabled, collects all iterations into a batch. When disabled, only outputs the final iteration's result.
overlapCOMBOHow to handle duplicate frames where consecutive iterations overlap (e.g. context frames a video model re-generates). - disabled: keep every frame as-is - start/end: cut the duplicates from the start or end of each iteration's output - fade_linear/fade_smooth: crossfade the end of each iteration into the start of the next
stopoptBOOLEANfalseOptional early stop signal from inside the loop body. When True, the loop stops after the current iteration regardless of remaining iterations or total_frames target.

Outputs (1)

NameTypeDescription
outputCOMFY_MATCHTYPE_V3Accumulated batch or final iteration result, depending on 'accumulate' setting.