Nodes/Link Comfy Nodes/WAN Loop Frames
ComfyUI Node

WAN Loop Frames

A ComfyUI node in conditioning/video_models with 5 inputs and 6 outputs.

By Mister-Link·Created 11 months ago·Updated 6 days ago· 0
WAN Loop Frames
  • frames
  • frames
  • mask
  • frame_count
  • metadata
  • context_frames
  • raw_frames
◄frames_to_cut0►
◄frames_to_add0►
◄context_frames4►
◄preferenceadd frames►
Categoryconditioning/video_models

Inputs (5)

NameTypeDefaultDescription
framesIMAGEFull source animation. Only a midpoint context segment is output for sampling.
frames_to_cutINT00–9998Source frames removed alternately from the beginning and end; at least one frame is always preserved.
frames_to_addINT00–9998Requested number of blank masked frames inserted at the midpoint seam.
context_framesINT40–9998Number of source context frames included before and after the blank inpaint frames.
preferenceCOMBOadd framesIf the requested full-animation result is not 1 + 4n, round the blank-frame count up or down.

Outputs (6)

NameTypeDescription
framesIMAGEOnly the requested context segment: before-context, blank frames, after-context.
maskMASKBlack for context frames and white for the blank frames to inpaint.
frame_countINTFinal full-animation frame count after WAN 1 + 4n adjustment.
metadataSTRINGMetadata for WAN Unloop Frames to merge the inpainted segment back into the full animation.
context_framesINTActual number of frames in the context segment for the sampler length.
raw_framesIMAGEUntouched original frame batch for WAN Unloop Frames.