![Minimax H3 V2V Temporal Window & Spatial Tiles node](node.png) # Minimax H3 V2V Temporal Window & Spatial Tiles by Mohamed ([mo-akkakk](https://registry.comfy.org/publishers/mo-akkakk)) Long and high-resolution video-to-video for the **open-weights MiniMax H3** in native ComfyUI. It is one node that goes after the model: - **Temporal windows:** a long shot is generated as overlapping windows, one after another, each one continuing smoothly from the last. - **Spatial tiles:** a big frame is generated as overlapping tiles, each following its own part of your plate (the reference video). Both work in stage 1 (full denoise) and stage 2 (low-denoise refine). The pack also has a second node, **Minimax H3 Long Generation**, for long text-to-video and image-to-video without a reference video, with a prompt timeline so the story moves forward. See [Long Generation node](#long-generation-node-text--image-to-video). Nothing inside the model is patched: every window and tile is an ordinary native H3 run. With one window and no tiles, the output is bit-identical to the plain native workflow. ## What's new **1.1.2** - Much faster start with tiles + `plate`: all plate pieces are now encoded first (video VAE), then all prompts (text encoder). Before, the two big models were swapped onto the GPU once per window × tile, which on long, tiled shots could take a very long time before the first sampling step. - Progress before sampling: the console shows `encoding plate piece 3/12 …` / `encoding prompt 5/12 …`, and the node's progress bar moves, so a long start no longer looks stuck. **1.1.1** - Long Generation: every action that falls inside a window is listed in that window's timeline again, even one that starts near the window's end. Holding those back (1.1.0) made the next window jump to the new action, which caused more cuts; listing them lets H3 set the action up inside the same shot. Actions may start a little earlier than scheduled — space your timeline a bit more if they do. **1.1.0** - New node: **Minimax H3 Long Generation (mo-akkakk)** for long text-to-video, image-to-video and first/last-frame generation. Windows are sampled one after another, each continuing from the previous one's finished frames, and an optional `prompt_schedule` (or a `Timeline:` in your prompt) gives every window the scene plus its own part of the story, re-timed in H3's native timeline format. See [Long Generation node](#long-generation-node-text--image-to-video). - The V2V node is unchanged. **1.0.9** - The node is renamed *Minimax H3 V2V Temporal Window & Spatial Tiles*, to make clear it follows a reference video (V2V). Saved workflows keep working: only the displayed name changed. - Clearer console message: without a reference video, the node now says every window uses the same prompt (which is expected), instead of warning that CLIP is not routed. **1.0.8** - **Exact tile crops (automatic).** When the plate is smaller than the output (always in stage 2, and in stage 1 above about 1 MP), each tile now gets exactly its own area of the plate. Before, the crop was rounded out to a coarse grid, so each tile followed a slightly zoomed or shifted plate and neighbouring tiles disagreed (shifting, doubling or changing content at tile overlaps). When plate and output are the same size, nothing changes. - **New optional `plate` + `vae` inputs.** Reference to Video always shrinks reference videos to about 768p. Connect your full-resolution video to `plate` and each tile's plate piece is cut from it at full detail instead. See [The plate input](#the-plate-input-optional). - **New `plate_scale` setting** to trade the plate's detail for speed. **1.0.7** - New `tile_carry` setting (default `own_tile`): with tiles and `carry_overlap`, each tile now continues from its own unblended frames of the previous window instead of the blended picture. Blending differences are no longer fed forward from window to window, so long tiled shots no longer slowly drift away from the plate. `blended` keeps the 1.0.6 behaviour. **1.0.6** - Spatial tiles are back to the 1.0.3 method: every tile is sampled on its own crop and the tiles are feather-blended. The 1.0.4 frozen-overlap tiles stitched badly in real use, in stage 1 and stage 2, and have been removed. - `tile_audio`: `generate_once` now simply uses the first tile's soundtrack (no masks), instead of averaging one soundtrack per tile as 1.0.3 did. `keep_input` outputs the incoming audio untouched. - `color_match` for tiles now compares each tile with the tiles already blended into its overlap. - Kept from 1.0.4/1.0.5: guide clips crossing a window edge are cropped instead of dropped, guide latents are resized to the frame, the device fix. **1.0.5** - Fix: with spatial tiles on, 1.0.4 could stop with "Expected all tensors to be on the same device (cuda:0 and cpu)". The tile mask is now built on the GPU. **1.0.4** - Tiles now run one after another. Each tile is prefilled with its finished neighbours over the overlap: the outer half of that band is frozen and the inner half is blended in, so seams continue the neighbour instead of being averaged. - New `tile_audio` setting. `generate_once` (default): the first tile makes the soundtrack and the other tiles keep it, instead of averaging one soundtrack per tile. `keep_input`: the incoming audio is kept untouched (stage 2). - A guide clip that crosses a window edge is no longer dropped: the window keeps the 17-frame chunks inside it, plus the clip's audio. - Guide latents at another resolution are resized to the frame before tiles crop them. - New `color_match` switch (off by default): removes a small colour/brightness offset between tiles and between windows. - Saved workflows keep their settings; the two new widgets are added at the end. **1.0.3** - New `short_final_window` switch (off by default): the last window can keep its natural shorter length instead of being pulled back to a full window. - New `min_final_window_frames` (default 22): the shortest the last window may be when `short_final_window` is on. **1.0.2** - README and tooltips: spatial tiles also work in stage 1 when a plate (reference video) drives the shot. - Removed the note that the plate must be 24 fps; testing showed it doesn't matter. **1.0.1** - New `temporal_windows` switch: turn windows off to run the whole length as one native pass (tiles still available). **1.0.0** - First release: sequential temporal windows with overlap carry and crossfade, per-window (and per-tile) prompt re-encoding, spatial tiles, works with KSampler and SamplerCustomAdvanced. ## Install **ComfyUI Manager / Registry:** search for *Minimax H3 V2V Temporal Window & Spatial Tiles* (published as `comfyui-minimax-h3-temporal-window-spatial-tiles`; before 1.0.9 it was called *Minimax H3 Temporal Window & Spatial Tiles*). **Manual:** ``` cd ComfyUI/custom_nodes git clone https://github.com/mo-akkakk/ComfyUI-MiniMaxH3-TemporalWindow-SpatialTiles ``` Restart ComfyUI. It needs ComfyUI with native MiniMax H3 support (v0.35.0 or newer) and has no extra dependencies. ## Wiring ``` UNETLoader -> (shift / LoRA / low-VRAM patches) -> Minimax H3 V2V Temporal Window & Spatial Tiles -> BasicGuider or KSampler CLIPLoader ------------------------------------> (clip in ... clip out) -> MiniMax H3 Reference to Video Your video at output resolution (optional) ----> plate VAE (optional, with plate) --------------------> vae ``` Everything else is the stock H3 workflow: Reference to Video (with your video as `ref_video_0`), Add Guide, SamplerCustomAdvanced or KSampler, and VAE Decode. **Always route the CLIP through the node.** It records what Reference to Video encodes and re-encodes the prompt for every window and tile. Qwen then sees only that window's frames of `