[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116261":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":15,"compositeScore":16,"rankGlobal":8,"rankLanguage":8,"license":17,"archived":18,"fork":18,"defaultBranch":19,"hasWiki":20,"hasPages":18,"topics":21,"createdAt":8,"pushedAt":22,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":13,"starSnapshotCount":13,"syncStatus":14,"lastSyncTime":26,"discoverSource":27},116261,"ComfyUI-MiniMaxH3-TemporalWindow-SpatialTiles","mo-akkakk\u002FComfyUI-MiniMaxH3-TemporalWindow-SpatialTiles","mo-akkakk",null,"Python",56,5,1,0,2,4,42.53,"MIT License",false,"main",true,[],"2026-11-23 11:54:48","2026-11-23 04:19:09","![Minimax H3 V2V Temporal Window & Spatial Tiles node](node.png)\n\n# Minimax H3 V2V Temporal Window & Spatial Tiles\n\nby Mohamed ([mo-akkakk](https:\u002F\u002Fregistry.comfy.org\u002Fpublishers\u002Fmo-akkakk))\n\n[![Watch the video on YouTube](https:\u002F\u002Fimg.youtube.com\u002Fvi\u002F_lVzzLr9aC4\u002Fhqdefault.jpg)](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=_lVzzLr9aC4)\n\n▶ [Watch the video on YouTube](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=_lVzzLr9aC4)\n\nLong and high-resolution video-to-video for the **open-weights MiniMax H3** in native ComfyUI. It is one node that goes after the model:\n\n- **Temporal windows:** a long shot is generated as windows, one after another, each one starting from the last frames of the previous one.\n- **Spatial tiles:** a big frame is generated as overlapping tiles, each following its own part of your plate (the reference video).\n\nBoth work in stage 1 (full denoise) and stage 2 (low-denoise refine).\n\nThe pack also has **Minimax H3 Multi Guide** (many guide frames in one node, see [Multi Guide node](#multi-guide-node)), **Minimax H3 V2V Temporal Window & Spatial Tiles OLD** (the 1.4.0 V2V node, kept for saved workflows), and **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.\n\n## What's new\n\n**1.6.1** — fix: `prefix` carry stopped at window 2 with *\"Expected all tensors to be on the same device, cuda:0 and cpu\"* when the workflow had no noise mask of its own (seen with Long Generation; the V2V node is fixed too).\n\n**1.6.0** — prefix carry in **Long Generation**, and **until_step** in **Multi Guide**\n- **Long Generation** now has the same `carry_mode` as the new V2V node, with **`prefix`** as the default: the previous window's last `carry_prefix_frames` (39 by default) start the next window as frozen frames, for an exact hand-off with no extra tokens. `carry_frames` is the 1.5.0 method.\n- Its settings are reorganized like the new V2V node, and the `carry_overlap` switch is gone (carrying is always on). ⚠️ **Saved Long Generation workflows load with shifted values**: re-add the node, or switch to 1.5.0 in the Manager (*Switch Ver*) to read your old settings, then update. For exactly the 1.5.0 result, use `carry_mode` = `carry_frames` with `carry_prefix_frames` and `overlap_frames` both set to your old `overlap_frames`.\n- **Multi Guide** has a per-guide **`until_step`** (image and audio guides): for how many sampling steps the guide is used. `-1` (default) = every step, as before; `N` = only the first N steps of each run, then it is left out, so it sets the composition and leaves the details free (needs the new optional **model** input and output: route the model through the node, before or after the V2V \u002F Long Generation node); `0` = the guide is switched off without unplugging it. See [Multi Guide node](#multi-guide-node).\n- The V2V nodes are unchanged.\n\n**1.5.0** — a new V2V node with **prefix carry**, and the old one kept as **OLD**\n- **Minimax H3 V2V Temporal Window & Spatial Tiles** is now a new node with tidier settings and a new way to join windows, `carry_mode` = **`prefix`** (the default): the previous window's last frames are put into the start of the next window as frozen frames. They are not generated again, so the hand-off is exact: no crossfade, no ghosting at the join, and no extra tokens (less memory, and faster than the old method in testing). The old method is still there as `carry_mode` = `carry_frames`.\n- The 1.4.0 node is renamed **Minimax H3 V2V Temporal Window & Spatial Tiles OLD**. It is unchanged, so **saved workflows keep their settings and render exactly as before**. For new workflows, use the new node.\n- The `carry_overlap` switch is gone from the new node (carrying is always on); `overlap_frames` only appears with `carry_mode` = `carry_frames`.\n- The example workflows now use the new node.\n\n**1.4.0** — new node: **Minimax H3 Multi Guide**\n- All your guide frames in one node instead of a chain of Add Guide nodes: connect an image (or a clip) to `guide_0` and the next guide slot appears, each with its own `frame_idx`; audio guides work the same way (`audio_0`, `audio_frame_idx_0`...). See [Multi Guide node](#multi-guide-node).\n- New tip on writing prompts for tiles (sentences that are true in any crop of the frame).\n\n**1.3.1** — the registry's 1.3.0 was published from an unfinished test build (with separate `style_anchor` \u002F `tile_sync` switches). 1.3.1 is the real 1.3.0: `sync` is an option of `tile_carry`. If you saved a workflow with 1.3.0, re-add the V2V node.\n\n**1.3.0** — tiles no longer ghost on fast motion (1.2.0 workflows load fine, no settings moved)\n- New `tile_carry` option **`sync`** (now the default for new nodes): all tiles take every sampling step together, and their overlaps are averaged after each step. Neighbouring tiles have to agree on where things are, so a fast-moving subject crossing a seam no longer comes out doubled (ghost heads, double eyes), and every tile keeps following the input's motion. Same VRAM (the model still sees one tile at a time) and about the same time. Works with or without temporal windows.\n- Saved workflows keep their old `tile_carry` value (`own_tile` \u002F `blended`), so they render exactly as before. Switch them to `sync` to get the fix.\n- New `example_workflows` folder (see [Example workflows](#example-workflows)).\n\n**1.2.0** — ⚠️ the V2V node's settings were reordered, so **old workflows load with shifted values**\n- New `carry_frames` (right under `carry_overlap`): how many of the overlap frames the next window gets as its guide. Fewer = less extra memory from window 2 on, while the whole overlap is still crossfaded. At or above `overlap_frames` (the default with overlap 22) it carries the whole overlap, exactly as before.\n- Settings regrouped: `overlap_frames` sits under `temporal_windows`, `carry_frames` under `carry_overlap`, and `tile_mode` right under `spatial_tiles`, followed by its tile settings.\n- **If an old workflow looks wrong after updating:** delete the V2V node and add it again, then re-enter your settings. To see what your old settings were, switch the pack back to **1.1.4** in ComfyUI Manager (Custom Nodes Manager → this pack → *Switch Ver* → 1.1.4), restart, open the workflow and note the values, then update to 1.2.0 again and enter them in the new node. The Long Generation node is unchanged.\n\n**1.1.4**\n- The V2V node now only shows the tile settings of the chosen `tile_mode`: `tile_width` \u002F `tile_height` for `tile_size`, `tiles_across` \u002F `tiles_down` for `tile_count`. The others are hidden, not removed, so saved workflows keep all their values.\n\n**1.1.3**\n- New `tile_mode` for the V2V node: `tile_size` (as before: set `tile_width` \u002F `tile_height` in pixels) or `tile_count` (set `tiles_across` × `tiles_down`; the tile size follows from the frame size). Both use `tile_overlap`. The new settings are at the bottom of the node, so saved workflows keep their values.\n\n**1.1.2**\n- 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.\n- Progress before sampling: the console shows `encoding plate piece 3\u002F12 …` \u002F `encoding prompt 5\u002F12 …`, and the node's progress bar moves, so a long start no longer looks stuck.\n\n**1.1.1**\n- 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.\n\n**1.1.0**\n- New node: **Minimax H3 Long Generation (mo-akkakk)** for long text-to-video, image-to-video and first\u002Flast-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).\n- The V2V node is unchanged.\n\n**1.0.9**\n- 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.\n- 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.\n\n**1.0.8**\n- **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.\n- **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).\n- **New `plate_scale` setting** to trade the plate's detail for speed.\n\n**1.0.7**\n- 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.\n\n**1.0.6**\n- 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.\n- `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.\n- `color_match` for tiles now compares each tile with the tiles already blended into its overlap.\n- Kept from 1.0.4\u002F1.0.5: guide clips crossing a window edge are cropped instead of dropped, guide latents are resized to the frame, the device fix.\n\n**1.0.5**\n- 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.\n\n**1.0.4**\n- 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.\n- 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).\n- 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.\n- Guide latents at another resolution are resized to the frame before tiles crop them.\n- New `color_match` switch (off by default): removes a small colour\u002Fbrightness offset between tiles and between windows.\n- Saved workflows keep their settings; the two new widgets are added at the end.\n\n**1.0.3**\n- 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.\n- New `min_final_window_frames` (default 22): the shortest the last window may be when `short_final_window` is on.\n\n**1.0.2**\n- README and tooltips: spatial tiles also work in stage 1 when a plate (reference video) drives the shot.\n- Removed the note that the plate must be 24 fps; testing showed it doesn't matter.\n\n**1.0.1**\n- New `temporal_windows` switch: turn windows off to run the whole length as one native pass (tiles still available).\n\n**1.0.0**\n- 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.\n\n## Install\n\n**ComfyUI Manager \u002F 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*).\n\n**Manual:**\n```\ncd ComfyUI\u002Fcustom_nodes\ngit clone https:\u002F\u002Fgithub.com\u002Fmo-akkakk\u002FComfyUI-MiniMaxH3-TemporalWindow-SpatialTiles\n```\nRestart ComfyUI. It needs ComfyUI with native MiniMax H3 support (v0.35.0 or newer) and has no extra dependencies.\n\n## Example workflows\n\nIn the `example_workflows` folder (also listed in ComfyUI under **Workflow → Browse Templates**, in this pack's section):\n\n| Workflow | What it does |\n|---|---|\n| `Minimax-H3_Video_Editing_1STG.json` | Stage 1: video editing \u002F restyling with Reference to Video, run through the V2V node. |\n| `Minimax-H3_latent_upscaler.json` | Stage 2: latent upscale of the stage-1 result, then a refine pass through the V2V node. |\n\nThey use a few other node packs; ComfyUI Manager's **Install Missing Custom Nodes** finds them: KJNodes, Video Helper Suite, rgthree, Easy Use, RES4LYF, Nuke Nodes, ComfyUI-Open-H3-Regenerate, Comfyui_DualVideoCompare, Comfyui-MMH3-UltimateUpscale, ReservedVRAM and fearnworks nodes. The latent upscaler model comes from [LBH-123-AI\u002FMinimax_h3_latent_Upscaler](https:\u002F\u002Fhuggingface.co\u002FLBH-123-AI\u002FMinimax_h3_latent_Upscaler) (a note in the workflow links it).\n\n## Wiring\n\n```\nUNETLoader -> (shift \u002F LoRA \u002F low-VRAM patches) -> Minimax H3 V2V Temporal Window & Spatial Tiles -> BasicGuider or KSampler\nCLIPLoader ------------------------------------> (clip in ... clip out) -> MiniMax H3 Reference to Video\nYour video at output resolution (optional) ----> plate\nVAE (optional, with plate) --------------------> vae\n```\n\nEverything else is the stock H3 workflow: Reference to Video (with your video as `ref_video_0`), Add Guide, SamplerCustomAdvanced or KSampler, and VAE Decode.\n\n**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 `\u003CVideo 1>` (with timestamps from 0), cropped to that tile — exactly like a manually cut batch. Without this, every window reads a description of the whole shot and timing drifts.\n\n- **Stage 1:** full sigmas.\n- **Stage 2:** decode → upscale → VAE Encode → Concat AV Latent (with the stage-1 audio), or upscale the latent directly with [LBH-123-AI's MiniMax H3 latent upscaler](https:\u002F\u002Fgithub.com\u002FLBH-123-AI\u002FComfyui_Minimax_h3_latent_Upscaler). Then use a second copy of the node, usually with `spatial_tiles` on, and sample with low sigmas (see Tips).\n\n## Settings\n\nThe settings below are the new node's, in the order it shows them. The OLD node has the same settings in its 1.4.0 order, plus `carry_overlap` and always the `carry_frames` method.\n\n### Temporal windows\n\n| Setting | What it does |\n|---|---|\n| `temporal_windows` | On: the shot is split into windows. Off: the whole length runs as one native pass (tiles still work). |\n| `window_frames` | Frames per window, including the carried frames, on H3's 17k+5 grid (124 = 5.2 s, 175 = 7.3 s). Keep it within what H3 handles accurately on your setup. |\n| `short_final_window` | Off (default): the last window is pulled back to a full `window_frames`, re-generating some frames at the end. On: the last window keeps its natural shorter length, saving time. |\n| `min_final_window_frames` | With `short_final_window` on: the shortest the last window may be (5, 22, 39, 56…). |\n| `carry_mode` | How each window continues from the previous one. **`prefix`** (default): the previous window's last `carry_prefix_frames` frames are put into the start of the next window as frozen frames (video and audio). They are kept exactly, not generated again, so the join is exact, nothing is crossfaded, and no extra tokens are added. **`carry_frames`**: the 1.4.0 method: windows share `overlap_frames`, the next window regenerates them guided by the previous window's last `carry_prefix_frames` frames (extra tokens), and the two versions are crossfaded. |\n| `carry_prefix_frames` | `prefix`: how many frozen frames start each window after the first (5, 22, 39…); must be less than `window_frames`. 22 is a good default; more gives the next window more motion to continue from. `carry_frames`: how many of the overlap frames guide the next window (at or above `overlap_frames` = the whole overlap). |\n| `overlap_frames` | Only with `carry_mode` = `carry_frames`: frames shared by neighbouring windows (5, 22, 39…), regenerated and crossfaded. |\n\n### Spatial tiles\n\n| Setting | What it does |\n|---|---|\n| `spatial_tiles` | On: each window is split into overlapping tiles. Needs a plate (a reference video): without one, a full-denoise pass in tiles repeats the subject in every tile. |\n| `plate_scale` | Only with the `plate` input connected: see [The plate input](#the-plate-input-optional). |\n| `tile_mode` | `tile_size` (default): tiles are `tile_width` × `tile_height` pixels, and as many as needed are used. `tile_count`: the frame is split into `tiles_across` × `tiles_down` tiles, and their size follows from the frame size and `tile_overlap` (the console prints the resulting tile size). |\n| `tile_width` \u002F `tile_height` | With `tile_size`: tile size in pixels. Use a size H3 handles well on your setup (for example 960 × 544, or about 1 MP). |\n| `tiles_across` \u002F `tiles_down` | With `tile_count`: how many tiles horizontally and vertically (1 = no split in that direction). Handy when the output size changes between shots. Keep the resulting tiles at a size H3 handles well. |\n| `tile_overlap` | Pixels shared by neighbouring tiles, which are feather-blended there. Used by both tile modes. Use 192 px or more. |\n| `crop_ref_images_per_tile` | Also crop `\u003CPicture N>` reference images to each tile. On when the picture is a frame of the shot (e.g. an edited first frame); off for character, product or style references. |\n| `tile_audio` | `generate_once` (default): use the soundtrack generated by the first tile. `keep_input`: keep the incoming audio untouched — use it in stage 2 when the stage-1 audio is final. |\n| `tile_carry` | How tiles are sampled and continued. `sync` (default, recommended): all tiles step together and their overlaps are averaged after every step, so tiles agree (no ghosting on fast motion); each window continues from that agreed picture; the per-tile `color_match` is skipped (not needed). `own_tile`: each tile is sampled on its own, blended at the end, and continues from its own frames of the previous window (1.2.0 default). `blended`: like `own_tile` but continues from the blended picture (1.0.6 and earlier). |\n| `color_match` | Off by default. Removes a small colour\u002Fbrightness step between a tile and its neighbours, and between a window and the previous one. Try it only if you see a tone step at seams. |\n\n### The plate input (optional)\n\n| Input \u002F setting | What it does |\n|---|---|\n| `plate` | Your video at full resolution. Only used with `spatial_tiles` on. |\n| `vae` | The video VAE, needed with `plate`. |\n| `plate_scale` | Size of each tile's plate piece, relative to the tile. `1.0` = full detail (slowest). `0.5` = a quarter of the reference tokens: much faster, still exactly aligned and sharper than no plate. |\n\n**Why use it.** Reference to Video always shrinks a reference video to about 768p, whatever size you generate. When you generate above about 1 MP, or refine in stage 2, every tile then follows a small, soft piece of that copy. With `plate` connected, each tile's piece is cut from your full-resolution video instead, so tiles follow real detail and stay locked to the original.\n\n**How to feed it:**\n- Keep your video connected to Reference to Video as `ref_video_0` as well — the node needs it for the prompt and timing, and only swaps in the sharper pieces. That copy can be small (e.g. 1 MP), since it is shrunk to 768p anyway.\n- `plate` must be **the same clip**: same first frame, same frames, at least as long — just at higher resolution.\n- Feed it at about **your output resolution**. A 4K plate works but takes a lot of RAM (about 100 MB per frame).\n\n**Cost.** Before the first sampling step, the node encodes every window × tile once: first all plate pieces, then all prompts (the console shows the progress). With many tiles and windows this takes a while. Each tile's plate piece is encoded once with the VAE before sampling, and bigger plate pieces mean more reference tokens at every sampling step. At `plate_scale` 1.0, expect a run to take about 1.6× as long as without the plate (in testing: 1330 s vs 812 s); lower `plate_scale` to get most of that time back.\n\n## Tips\n\n- **Prompts for tiles: write sentences that are true in any crop of the frame.** Every tile reads the same prompt, so a tile that only shows an empty passenger seat, told to \"match the head movement of the man\", adds a man. Say \"every person in `\u003CVideo 1>`\" instead of \"the man\", add explicit lines like \"only the people visible in `\u003CVideo 1>` appear, nobody is added, empty seats stay empty\" (at cfg 1 there is no negative prompt, so the \"no\" goes in the positive), and use H3's own reference names `\u003CVideo 1>` \u002F `\u003CPicture 1>` (counted from 1), not `\u003Cref_video_0>`. Example (car on a green screen):\n  > `\u003CVideo 1>` is the source footage. Keep its camera motion exactly, and keep every person in it exactly as they are: the same head movement and micro expressions, matched to the pixel. `\u003CPicture 1>` is the final look of the shot. Outside the car windows the green screen is replaced by a cliff road matching `\u003CPicture 1>`; the car is already moving along it, with no car shake. Inside the car everything stays as in `\u003CVideo 1>`: only the people visible in `\u003CVideo 1>` appear, nobody is added, and empty seats stay empty. Nobody talks, mouths stay still. Sound: ambient road noise, no speech.\n- **Write the prompt so it is true for every frame**, because each window reads it on its own.\n- **This node is for video-to-video.** Windows follow the reference video, which tells each window where it is in the shot. With only text or a picture (no `ref_video_0`), every window gets the same prompt, so each window tends to act out the whole prompt again — a long story \"restarts\" every window. For text- or image-driven generation, use the **Long Generation** node instead.\n- **Use H3's reference tags in the prompt:** `\u003CVideo 1>`, `\u003CPicture 1>`, `\u003CAudio 1>` (counting from 1 for each kind). These are the labels Qwen actually sees; input names like `ref_video_0` are not.\n- **Avoid thin padding bars.** H3 works on 16 × 16-pixel blocks. If you pad a plate to round its size and the bars are thinner than about 16 px, H3 partly paints over them and the picture comes out slightly squashed and shifted. Use edge padding (repeat the last pixel), bars of 32 px or more, or crop instead of padding.\n- **Stage 2: check your real sigmas.** `BasicScheduler` with `denoise` does not start at that amount of noise: with `linear_quadratic`, denoise 0.4 actually starts at sigma 0.93, almost a full re-generation, and windows and tiles will then disagree. For a refine, start around 0.2–0.45 (e.g. with ManualSigmas).\n- **Seam where windows join:** use `carry_mode` = `prefix` (exact join). With `carry_frames`, increase `overlap_frames` (22 → 39). With `prefix`, if the motion changes character right after the frozen frames, try a longer `carry_prefix_frames` (22 → 39).\n- **Seam between tiles:** increase `tile_overlap`, then try `color_match`.\n- **Out of memory at window 2 (often on big cloud GPUs, e.g. \"exceeds allowed memory\" right after window 1).** From window 2 on, each window also holds the carried frames, so it is a bit bigger than window 1, and ComfyUI's built-in model compiler (the console shows `Comfy model compiler graph breaks`, part of dynamic VRAM) re-records for the new size. This is ComfyUI itself, not a torch compile node in the workflow. Fixes, in order: start ComfyUI with `--disable-comfy-compiler`; if it still fails, add `--disable-dynamic-vram`; then lower `carry_frames` (or `overlap_frames`) or `window_frames`. With the new node's `prefix` mode this does not happen: a prefix adds no tokens, so every window has the same size.\n- **Fine texture flickering (\"micro-boiling\") at high resolution** comes mostly from the model and sampler (few-step LoRAs especially), not from tiling. Generating at about 1 MP and refining in stage 2 at low denoise is the most stable route to high resolution.\n\n## Multi Guide node\n\n**Minimax H3 Multi Guide (mo-akkakk)** does what ComfyUI's **Add Guide for MiniMax H3** does, for many guides in one node.\n\n- Wire `positive`, `latent`, `vae` and `audio_vae` like Add Guide (positive and latent from Reference to Video or Image to Video), and its `positive` output on to the sampler (or the next node). `vae` is needed for image guides, `audio_vae` for audio guides.\n- Connect an image to `guide_0`: a `guide_1` slot appears, and so on (up to 16). Each connected guide shows its own `frame_idx`.\n- `frame_idx` = the frame to anchor that guide at. Negative counts from the end: `-1` = the last frame.\n- A guide can also be a clip (an image batch): it is anchored as a clip of 5, 22, 39... (17k+5) frames starting at `frame_idx`, cropped down to that length, exactly like Add Guide. That is how a whole source video can be one guide, with edited single frames as further guides.\n- Each guide is anchored exactly as the native Add Guide would anchor it, in slot order, so the result is the same as chaining one Add Guide per image. An error names the guide slot it is about.\n- If you disconnect a guide or an audio in the middle, the ones below move up one slot and their frame indexes move with them.\n- **Audio guides:** connect a soundtrack to `audio_0` and an `audio_1` slot appears, each with its own `audio_frame_idx` (where that audio starts; cropped to the video's remaining duration, like Add Guide). An audio at the same frame as an image guide joins it as one guide, exactly like Add Guide with both an image and an audio connected; an audio at any other frame is an audio-only guide.\n- Works with the V2V and Long Generation nodes: each window gets the guides that fall inside it.\n\n### until_step: release a guide after N steps\n\nEach connected guide also shows an `until_step` (and each audio an `audio_until_step`): for how many sampling steps the guide is used.\n\n- **-1** (default): every step, exactly like Add Guide.\n- **0**: no step: the guide is switched off. Handy to test a run without it, without unplugging the image and losing its slot and `frame_idx`. No model connection needed.\n- **N**: the guide is used for the first N sampling steps only, then left out. The early steps decide the composition (pose, layout, framing); the later steps decide the details (texture, lighting, grain). So the guide sets the frame up and the details are free to blend with the rest of the shot. Count it in your own steps: with an 8-step LoRA, `until_step` 3 holds the guide for steps 1–3; with a 20-step run you would pick a higher number for the same effect.\n- An image and an audio at the same frame are one guide, but each keeps its own `until_step`: for example the picture can be released after step 3 while its sound stays for the whole run.\n- **N needs the model routed through this node** (`model` in → `model` out, on to the sampler or the next model node). The order does not matter: before or after the V2V \u002F Long Generation node gives the same result. If a guide has an `until_step` and the model is not connected, the node stops with a clear message instead of ignoring it.\n- With windows, every window runs its own full schedule, so `until_step` counts within each window. With tiles (including `sync`), every tile follows the same rule.\n- Only guides from this node are released. A V2V window carry is never released.\n\n## Long Generation node (text \u002F image to video)\n\n**Minimax H3 Long Generation (mo-akkakk)** makes long videos from text, a first frame, or first and last frames — no reference video needed. Like the V2V node, it samples overlapping windows one after another, and each window continues from the previous window's finished frames, so the picture stays sharp and the character stays the same. What it adds is a **timeline**: each window is told only its own part of the story, so the story moves on instead of restarting every window.\n\n### Wiring\n\n```\nUNETLoader -> (shift \u002F LoRA \u002F low-VRAM patches) -> Minimax H3 Long Generation -> BasicGuider or KSampler\nCLIPLoader ----------------------------------> (clip in ... clip out) -> MiniMax H3 Image to Video (or Reference to Video)\n```\n\nRoute the CLIP through the node — that is how it rewrites each window's prompt. Set the length on Image to Video (e.g. 481 frames = 20 s at 24 fps).\n\n### Writing the prompt\n\nSplit it into two parts:\n\n1. **The scene** — in the conditioning node's prompt box (Image to Video or Reference to Video). Everything that is true for the whole video: the look, the character, the places, the camera, the audio. Every window gets it unchanged.\n2. **The timeline** — in the node's `prompt_schedule`: only the actions, each with the second it starts.\n\n**Scene** (Image to Video prompt):\n```\nA cinematic medium shot of a young man with short dark hair, round glasses and a brown wool coat, walking along a quiet snowy city street at dusk, past small shops. Just ahead on his right is a small bakery with a warmly lit window full of cakes and a wooden door. Warm shop lights, light falling snow, handheld camera following him from the front. No text on signs.\n```\n\n**Timeline** (`prompt_schedule`):\n```\n0s: he walks slowly along the street toward the camera\n5s: he slows down and stops in front of the bakery window\n10s: he smiles and points at a cake behind the glass\n15s: he pushes open the bakery door and steps inside\n```\n\nEach window then gets the scene plus the part of the timeline it covers, re-timed so the window starts at 0 s — the way MiniMax's own templates write prompts. For example, a window covering 7.1–12.2 s gets:\n```\n\u003Cthe scene>\n\nTimeline:\n[0s-2.9s] he slows down and stops in front of the bakery window\n[2.9s-5.2s] he smiles and points at a cake behind the glass\n\nOne continuous shot, no cuts.\n```\nThe console prints every window's prompt, so you can check what each one received.\n\nYou can also write the timeline H3's own way, `[5s-10s] he stops at the bakery window`, either in `prompt_schedule` or as a `Timeline:` block inside the conditioning prompt — with `prompt_schedule` left empty, a timeline in the prompt is re-timed per window automatically.\n\n**Rules of thumb:**\n- **The scene says *where* everything is; the timeline says *when* things happen.** Put every place and object the story needs into the scene (the bakery, the door…). If an action needs something that is not in the shot yet, H3 tends to cut to it.\n- **Describe the character the same way throughout** — the scene does that for you, so keep identity details out of the timeline.\n- **One small action per line**, each continuing from the previous one. Give each action a few seconds. H3 sees the next action coming and may start it a little early — if it does, space the times further apart.\n- **Reference to Video works too:** put the tags in the scene (`\u003CPicture 1> is the man, \u003CPicture 2> is the bakery`), and use them in the timeline if you like. Pictures and reference audio are shown to every window. For a soundtrack that must play in time across the video, add it with Add Guide (audio) at frame 0 instead of as reference audio.\n\n### Settings\n\n| Setting | What it does |\n|---|---|\n| `prompt_schedule` | The timeline, one action per line: `5s: text` or `[5s-10s] text`. Empty = a `Timeline:` in the conditioning prompt is used; with none, every window uses the prompt as it is. |\n| `continuous_shot` | On (default): adds \"One continuous shot, no cuts.\" to every window's prompt, so H3 continues the carried frames instead of cutting when the action changes. Turn off if you want cuts. |\n| `window_frames` | Frames per window (17k+5), including the carried frames. 124 = 5.2 s. |\n| `short_final_window` \u002F `min_final_window_frames` | As in the V2V node. |\n| `carry_mode` | **`prefix`** (default): the previous window's last `carry_prefix_frames` start the next window as frozen frames (video and audio): kept exactly, not generated again, so the hand-off is exact and no extra tokens are added. **`carry_frames`**: the 1.5.0 method: windows share `overlap_frames`, the next window regenerates them guided by the previous window's last `carry_prefix_frames`, and the two versions are crossfaded. Either way every window continues from the previous one (there is no off switch: without it windows would be unrelated clips). |\n| `carry_prefix_frames` | `prefix`: how many frozen frames start each window after the first (5, 22, 39…); must be less than `window_frames`. Without a reference video these frames are all the next window has to continue the motion from, so 39 (the default) is recommended. `carry_frames`: how many of the overlap frames guide the next window (at or above `overlap_frames` = the whole overlap). |\n| `overlap_frames` | Only shown with `carry_mode` = `carry_frames`: frames each window shares with the previous one (5, 22, 39…), regenerated and crossfaded. 39 recommended. |\n| `first_last_images` | For Image to Video. `own_window` (default): the first image is in the first window's prompt only, the last image in the last window's only — matching where they are used as frames. `all_windows`: every window's prompt shows both (can hold a look, but later windows may drift back toward the first frame). |\n\nThere are no tiles in this node: without a reference video, tiles would each draw the whole scene. For a high-resolution result, generate at about 1 MP here, then upscale and refine it with the V2V node, using your generated video as the plate.\n\n### Limits\n\n- When the action changes a lot, or needs a place that is not in the shot yet, H3 may still cut to a new camera angle. Describing every place in the scene and keeping actions small and continuous helps most.\n- At each window join, motion can hesitate for a frame or two where the new window takes over. With `prefix`, if the motion changes character right after the frozen frames, try a longer `carry_prefix_frames` (39 → 56).\n- ComfyUI's native **MiniMax H3 Context Windows** node is an alternative: it blends all windows at every step, which avoids hand-off moments but in our side-by-side test gave a noticeably softer picture and a character whose look slowly changed.\n\n## How it works\n\nThe node registers an `OUTER_SAMPLE` wrapper on the model, so it works with any guider and sampler. For each window:\n\n1. It slices the noise and latent to the window, and the audio to the matching span on H3's 40 Hz audio grid.\n2. It re-times the native conditioning to the window: reference-video latents are sliced, guide frames are moved to window time (a guide clip crossing the window edge keeps its 17-frame chunks inside the window).\n3. It continues from the previous window: with `prefix`, the previous window's last frames (and audio) are written into the start of this window's latent with a denoise mask of 0, so H3 treats them as clean, finished frames and keeps them; with `carry_frames`, they are appended as a guide clip and the window regenerates its overlap.\n4. It swaps in the per-window prompt encoding.\n5. With tiles, it runs each tile on its own crop of everything above — noise, latent, plate, guides and prompt — and feather-blends the tiles.\n6. It writes the window into the output (with `carry_frames`, the regenerated overlap is crossfaded; with `prefix`, the frozen frames are already identical).\n\nWindows start on H3's 17-frame VAE-clip boundaries, so every window and every carried overlap is a valid H3 length.\n\n## Tests\n\n```\npython custom_nodes\u002FComfyUI-MiniMaxH3-TemporalWindow-SpatialTiles\u002Ftests\u002Ftest_windows.py\n```\n\nRun this from the ComfyUI root. The tests run ComfyUI's real H3 conditioning, model and sampler code on CPU, with a tiny random-weight DiT and recording stand-ins for Qwen and the VAE. They check, among other things, that:\n\n- a single window is bit-identical to native sampling;\n- each window gets its own slice of the plate, and the overlap carry is correct;\n- the per-window prompt shows only that window's frames, with timestamps from 0;\n- it works through KSampler, and tiles work with full and partial sigmas;\n- `tile_count` gives exactly the asked number of tiles, covering the frame with at least the chosen overlap;\n- each tile's plate crop lands exactly on the tile, and is a plain slice when plate and output are the same size;\n- with `plate`, every tile's reference is encoded from its exact crop of the plate, and `plate_scale` sizes it;\n- with `tile_carry` = `sync`, a window is one sampling run over the whole frame: every model call is split into the tiles (each with its own crop of the references, frame guides and prompt) and the tiles' predictions are feather-blended after every step, so they converge on one picture; with `own_tile`\u002F`blended` each tile is sampled on its own and continues from its own (or the blended) frames; the soundtrack comes from the first tile (or the input);\n- Long Generation: the timeline is parsed and re-timed per window, each window's prompt is the scene plus its own part of the timeline, and first\u002Flast images go only to their own window.\n\n## Limits\n\n- Tiles are sampled independently and blended afterwards, so very flat areas (sky, walls) can show slight differences between tiles. A wider `tile_overlap` helps, and `color_match` can help with tone steps.\n- Everything outside the plate (new content your prompt adds) is invented separately per tile and window, so keep the prompt consistent and the overlaps generous.\n\n## Credits\n\nThe guide resize and the colour match are adapted from ideas in [LBH-123-AI's MMH3 Split Upscale](https:\u002F\u002Fgithub.com\u002FLBH-123-AI\u002FComfyui_Minimax_h3_latent_Upscaler) (MIT). Cropping guide clips at 17-frame chunks follows the native MiniMaxH3ContextWindows support in ComfyUI.\n\n## License\n\nMIT, © 2026 Mohamed ([mo-akkakk](https:\u002F\u002Fregistry.comfy.org\u002Fpublishers\u002Fmo-akkakk)).\n","这是一个为 ComfyUI 设计的插件节点，专用于支持开源权重模型 MiniMax H3 的长时序、高分辨率视频到视频（V2V）生成。其核心功能包括时间窗口（Temporal Window）机制——将长视频分段生成，后一段以前一段末尾帧为起点延续；以及空间分块（Spatial Tiles）机制——将大分辨率单帧拆分为重叠图块并行渲染，兼顾细节与显存效率。所有操作均基于原生 H3 模型调用，无需修改模型权重。适用于需要生成分钟级、4K+ 分辨率视频的创作者、AIGC 工具链开发者及视频编辑工作流集成场景。","2026-11-24 04:53:20","CREATED_QUERY"]