Nodes/Mickmumpitz-Nodes/Frame Context Fit
ComfyUI Node

Frame Context Fit

Compresses a long image sequence into a fixed-size context window. Key frames are repeated, and intermediate frames are selected with easing.

By mickmumpitz·Created 7 months ago·Updated 22 days ago· 32
Frame Context Fit
  • images
  • images
  • key_frame_data
  • frame_indices_report
context_window80
key_frame_interval80
num_start_frames0
key_frame_repeats5
easing_modelinear
include_last_frametrue
Categoryimage/sequence

Inputs (7)

NameTypeDefaultDescription
imagesIMAGE
context_windowINT804–4096Total number of output frames (the context window size).
key_frame_intervalINT801–10000Pick a key frame every N input frames (e.g. 80 → frames 0, 80, 160 ...). When using iterative video generation with num_start_frames > 0, the first interval is this value and subsequent intervals are (key_frame_interval - num_start_frames).
num_start_framesINT00–1000Number of overlapping start frames in iterative video generation. When > 0, key frames are placed at iteration boundaries: first at key_frame_interval, then every (key_frame_interval - num_start_frames) frames. Set to 0 for uniform spacing.
key_frame_repeatsINT51–100How many times each key frame is repeated in the output.
easing_modeCOMBOlinearEasing curve applied when selecting intermediate frames between key frames.
include_last_frameBOOLEANtrueIf True, the very last input frame is always included as a final key frame (with repeats), even if it doesn't land exactly on an interval boundary.

Outputs (3)

NameTypeDescription
imagesIMAGE
key_frame_dataSTRING
frame_indices_reportSTRING