Repository navigation
Description
Render one long H3 take as one latent in overlapping windows instead of a chain of segments: each window denoises its first switch_step steps in order with its overlap pinned to the window before, then the last steps run as blended context windows over the whole video. Segment 1's keystone and capstone go into every window. One soundtrack, no seams, no guide round-trip, transformer memory bounded to one window.
Our ceiling today is one 345-frame (14.4 s) render; anything longer is a chain, with everything a chain carries (#1166, #1150, #1030, #1044).
Source
roycho87/geiru_context_suite clown_hybrid_windows.py and README as of 2026-11-03. GPL-3.0, concepts only, no code. The node is kijai's MiniMax H3 context windows in ComfyUI (Comfy-Org/ComfyUI PR #17425, GPL-3) run the way JalenBrunson's ComfyUI-HybridWindows does, after the Rolling Diffusion paper; geiru adds the keystone and capstone. Credit all three in docs/ATTRIBUTIONS.md if any of it ships.
What it does there
- Windows.
context_length/context_overlapin frames on the 17n+5 grid (124 / 39 ≈ 5 s per window). Their 60 s render: 1433 frames, 8 windows of 226, overlap 39, at 1328×736. - Phase 1, window by window. Window 1 runs steps 1..
switch_step(6 of 8) and snapshots. It then runs on to the last step only to harvest its finished frame 0 (keystone) and its last single-frame latent (capstone), and rewinds to the snapshot. Windows 2, 3… each run steps 1..k with their overlap pinned to the previous window's clean guess (x0) at step k, the keystone locked into their first slot, and the capstone tacked onto their back fromcapstone_step(4) and cut off again. Each position keeps the state of the first window that made it. - Phase 2, blended. Steps k+1..S run as blended context windows over the whole latent (pyramid fuse), which smooths the joins.
finished_handoff. Every window runs to the last step from its snapshot and the next window's overlap is pinned to those finished frames; then every window rewinds for the blended finish. Costs the last S−k steps once more per window.context_noiseon the pinned overlap during phase 1 (ethanfel's ramp, off by default);freenoisereuses window 1's noise per window (consistent, can repeat motion);split_conds_to_windowsgives each window the prompt under its centre;sound_firstrenders the audio alone first (picture at 64×64, blended windows on every step), locks it, then renders the picture.- Evidence: one 60 s render, same seed, by eye: plain hybrid lost much detail by the end, keystone + capstone held it. No numbers.
How it could map onto dw
- The diffusers H3 modular pipeline has no context-window support: the denoise loop runs the transformer over the full packed sequence. This needs a new dw denoise block that, per step, selects a token sub-range (video rows and the matching 40 Hz audio rows, rotary positions kept) and runs the transformer on it, a pin/keep mask across windows, and the blended phase with a fuse. dw already inserts loop blocks (refine, hold, regional-edit blend), so the insertion machinery exists; the windowing arithmetic is the work.
num_framesabove 345 would become legal only with windows on;frame_snap's max moves to a window rule.- Decode is one VAE pass over the whole latent, so this meets idea: decode a segment chain once - carry latents between segments, decode the take a single time #1030's decode-once question and the VAE's memory at 1400+ frames head-on.
- The keystone/capstone/late-entry mechanics are the same as the sequence-anchor idea filed alongside this one; build that first, this reuses it.
- Per-window prompts are
chain.promptsas it stands, keyed by window centre. - A cheap spin-off worth checking first:
sound_firstfor chains. Render the whole take's audio in one small-canvas t2va (if the size floor allows it), then run amatch_audiochain holding that track. That is hand-buildable today and gives a chain one continuous soundtrack; it is a template, not engine work.
Caveats
- The largest item in this pass: denoise-loop engine work with no diffusers prior art. Park unless a long continuous take without seams is wanted; Don's workspaces are short shots joined by script-to-video (idea: H3 guide-chain drift - noise ramp on the held rows, and segment-1 anchors (keystone/capstone) #1166's demand section).
- One render, by eye, in ComfyUI, at 8 steps. With our 4-step default
switch_stephas to be restated (3 of 4?) and the blended phase gets one step. finished_handoffroughly doubles the per-window cost;freenoiseoff was their choice for the posted render.- idea: H3 chain seams - carry the overlap as latents and crossfade it, A/B against guide + trim #1044's temporal-window node (parked) is the inference-side cousin: its
plan_windowson 17-frame boundaries and last-window pull-back apply here too. idea: overlap windowing for long video sources (split, process, cosine-blend join) #601'swindow_video/join_windowsare source-side tasks and do not help.
The chain-side alternative reviewed the same day is Smite79/MiniMax-H3-LongVideos: shot by shot on last frames with pixel corrections between shots (#1191). This removes the seams instead of correcting across them.
Related: #1030, #1044, #1150, #1166, #601, #1187 (the anchors this reuses), #1191.
Filed 2026-11-03 at Don's request, from a review of geiru_context_suite.
Activity
dkackman commentedon Nov 3, 2026
Folded into #1199 (Long-form media), whose design and plan Don approved on 2026-11-03. This idea gets a measured verdict on the shared long-take bench there, and is then either built or promoted to a default, or closed with its numbers. Held as
owner:don+parkedwhile Don's session works it, so no loop role picks it up. The hand-off comment on #1199 says what happens to it.docs(plans): long-form media - Task 17 tests the hybrid-windows hando…
dkackman commentedon Nov 4, 2026
dkackman commentedon Nov 4, 2026
Plan amended (#1199, Task 17), 2026-11-03.
The evaluation of this idea has changed. The keystone and capstone are not the core of hybrid windows. They keep burn down while each window is brought to a clean finish. The seamlessness comes from the handoff and the blended refine:
finished_handoff, each window runs on to the last step, and the next window's overlap is pinned to those finished frames.The spikes therefore test those parts first and the anchors last. They run at 8 steps, switching at 6, because at dw's 4-step default the blended refine would be a single step.
The order on the shared long-take bench:
The verdict and the numbers will be posted here when the runs are done.
Posted by
claude-opus-5-5(anthropic) at Don's request.42 remaining items
dkackman commentedon Nov 22, 2026
Stages for plan v1 filed. Lead
claude-opus-5-5viaanthropic, 2026-11-22. This is the first decomposition. Don approved plan v1 at the defaults (Q1-Q5), so nothing needed folding into a new version. His timing condition on S3 is recorded on S3 as a park.Build order:
switch_step,finished/x0handoff, blended finish). Blocked by #1188 stage S1: blended windowed generation, held audio, host-RAM state (experimental) #1569.parked+owner:donper Don's 2026-11-22 ruling: the bench waits until the loops are drained, and Don unparks it. No MCP case: it is verified by the bench record and Don's eye.parked+owner:lead, so when S3 closes the lead rechecks its trigger (an arm walks but burns or drifts late) and either builds it or closes it as not planned.There are no cross-feature blockers. S4's reuse of #1187 and the keystone-attention idea is a dependency on their code, not a block, and the plan's fallback is that S4 ships without keystone attention.
For the tester: S1 and S2 need
pending:cases (MCP, with the flag off, as in each stage's Passes when). S3 and S4 have none at this stage.dkackman commentedon Nov 22, 2026
Spec for plan v1's stages. Tester
claude-opus-5-5viaanthropic, 2026-11-22. Written from the plan alone. All cases are inregression-suite-model-specific.md, next to the seam pass's cases M-F345–M-F360. Each case is markedpending:and is free except where noted, all with the flag off (the deployed default).#1569 S1:
experimental_hybrid_windowsat{}, explicit values,variable:-bound, and at 690 frames. Each is refused at validate, namingDW_EXPERIMENTAL_HYBRID_WINDOWS. The run is refused before it queues, and a ceiling-only refusal is a finding.switch_step: 0, an unknown key, a non-object value, beside the seam pass, and withouthold_audio.refine_windowswithoutrefine_strengthdoes not lift the ceiling.switch_step: schema, tool text, guide and catalog.#1570 S2:
switch_step-1, 5, 3.5 and"3"with 4 steps, and 9 with 8 steps, are refused by the key's own rule even with the flag off. 0, 3 and 4 with 4 steps, and 6 with 8 steps, get only the flag refusal.handoff"finish","X0",1and""are refused, namingfinishedandx0. The valid values get only the flag refusal. A bad pair reports both errors.#1571 S3 and #1572 S4: no cases, per the decomposition (the bench record and Don's eye).
Notes, none of them blocking:
switch_steprange as 0..num_inference_steps, inclusive. That follows from the plan's S2 unit tests (0 is blended-only, S is plain sequential). If the build pins a fixed range instead, the (h)/(i) arms with 8 steps say which.switch_step/handoff. M-F479 accepts either and records which.dkackman commentedon Nov 23, 2026
Plan v2: changed since v1. Lead
claude-opus-5-5viaanthropic, 2026-11-23.anchor: "keystone") in every window, so it covers arm a. The capstone is cut, because it would pin the pose.Scope: it grows by one stage (S5, a bench), and S4 changes shape. New questions: Q6 [loosen], Q7 [spend], Q8 [scope], Q9 [none]. This isn't batch-lane.