Nodes/Minimax H3 Temporal Window & Spatial Tiles/Minimax H3 Temporal Window & Spatial Tiles (mo-akkakk)
ComfyUI Node

Minimax H3 Temporal Window & Spatial Tiles (mo-akkakk)

Put after the model, and route the CLIP through it into Reference to Video. Samples the video as overlapping temporal windows, one after another: each window is a normal H3 run on its slice of the plate, starts from the previous window's finished overlap frames (frame-0 guide), and the overlap is crossfaded. Optional spatial tiles, each following its crop of the plate. Works with KSampler and SamplerCustomAdvanced.

By mo-akkakk·Created 3 days ago·Updated 2 days ago· 14
Minimax H3 Temporal Window & Spatial Tiles (mo-akkakk)
  • model
  • clip
  • MODEL
  • CLIP
◄temporal_windowstrue►
◄window_frames124►
◄overlap_frames22►
◄carry_overlaptrue►
◄spatial_tilesfalse►
◄tile_width960►
◄tile_height544►
◄tile_overlap256►
◄crop_ref_images_per_tiletrue►
Categorymodel/patch/minimax

Inputs (11)

NameTypeDefaultDescription
modelMODEL—
temporal_windowsBOOLEANtrueSplit the shot into overlapping temporal windows. Off = the whole length runs as one native H3 pass.
window_framesINT12422–3600Frames per window (17k+5). Keep it inside what works natively for you, e.g. <= 192.
overlap_framesINT225–1000Frames shared by neighbouring windows (5, 22, 39...). Carried into the next window as its frame-0 guide, then crossfaded.
carry_overlapBOOLEANtrueGive each window the previous window's finished overlap frames (video and audio) as its frame-0 guide.
spatial_tilesBOOLEANfalseSplit each window into overlapping tiles, for stage 1 or stage 2. Each tile follows its crop of the plate. Without a reference video, a full-denoise pass in tiles repeats the subject.
tile_widthINT960256–16384—
tile_heightINT544256–16384—
tile_overlapINT2560–8192—
crop_ref_images_per_tileBOOLEANtrueWith tiles, crop <Picture N> to each tile too. On when the picture is a frame of this shot; off for character/style references.
clipoptCLIPRoute the CLIP through here into Reference to Video so each window re-encodes the prompt with only its own slice of <Video N> (timestamps from 0), like a manual batch. Strongly recommended.

Outputs (2)

NameTypeDescription
MODELMODEL—
CLIPCLIP—