Extensions/ComfyUI-MiniMaxH3-Context-Loop
ComfyUI Extension

ComfyUI-MiniMaxH3-Context-Loop

Clip chaining for MiniMax H3 in ComfyUI - motion and audio genuinely continue across joins

By ethanfel·Created about a month ago·Updated about 24 hours ago· 415
ethanfel/ComfyUI-MiniMaxH3-Contex-Loop
Nodes83
On cloudLocal install
Categoryconditioning/minimax/context_loop/upscale, conditioning/minimax/context_loop/policies
Stars415
Updatedabout 24 hours ago

Nodes (83)

H3 Conditioning Sync From Latents

The node that rescales your reference images to match an upscaled H3 render

conditioning/minimax/context_loop/upscale
MiniMax H3 Advanced Policy Override

Layer a named transition onto your H3 chain without nuking the audio plan

conditioning/minimax/context_loop/policies
MiniMax H3 Audio Tracks

Vocals drive the lip-sync, the full mix stays the soundtrack — one node keeps them straight

conditioning/minimax/context_loop/media
MiniMax H3 Context Loop Assemble

Stitch your saved H3 scenes into one MP4

conditioning/minimax/context_loop
MiniMax H3 Chapter Delivery

Render a whole episode scene by scene, then ship each chapter on its own schedule

conditioning/minimax/context_loop
MiniMax H3 Chapter Recovery Load

Pull one finished chapter back out of a run without dragging the whole project along

conditioning/minimax/context_loop
MiniMax H3 Checkpoint Manager

Browse every take of every scene, then upscale just the branch you want

conditioning/minimax/context_loop
MiniMax H3 Context Loop Context

Where your previous scene's motion and audio actually get carried over

conditioning/minimax/context_loop
MiniMax H3 Context Loop Current Shot

Prompt, seed, length and audio window for whatever shot is rendering

conditioning/minimax/context_loop
MiniMax H3 Chain De-Rope Continuity

Splice the previous HQ tail back in before pass 2 re-times the scene

conditioning/minimax/context_loop/upscale
MiniMax H3 Chain De-Rope Freeze Mask

Stop pass 2 from re-texturing the frames you already locked down

conditioning/minimax/context_loop/upscale
MiniMax H3 Chain De-Rope Guard

The guard that keeps de-roping from breaking your scene boundaries

conditioning/minimax/context_loop/upscale
MiniMax H3 Context Loop Export PNG Sequence + Audio

Render your whole accepted chain to a lossless PNG sequence

conditioning/minimax/context_loop
MiniMax H3 Existing Video Context

Start an H3 chain from footage you already have

conditioning/minimax/context_loop
MiniMax H3 Frame Gate

Opening image for scene one, nothing for the rest

conditioning/minimax/context_loop
MiniMax H3 Frame Index Switch

Alternate end-frame targets per scene for A/B endpoint chains

conditioning/minimax/context_loop
MiniMax H3 Full-Chain Latent Video Adapter

Feed your whole finished chain to SeedVR2 as one continuous movie

conditioning/minimax/context_loop
MiniMax H3 Context Loop End

Finish a shot, hand off, run the next

conditioning/minimax/context_loop
MiniMax H3 Context Loop Start

Start or resume an H3 chain — yes, resuming is the good part

conditioning/minimax/context_loop
MiniMax H3 Scene LoRA Scheduler

Swap LoRA'd models per scene without ever loading one

conditioning/minimax/context_loop
MiniMax H3 Context Loop Load Manifest

Rebuild your manifest from disk and skip the re-render

conditioning/minimax/context_loop
MiniMax H3 Pass-2 AV Prepare

Turn a video-only upscale into a full H3 pass-2 latent

conditioning/minimax/context_loop/upscale
MiniMax H3 Context Loop Plan

One definition that drives every scene in your H3 movie

conditioning/minimax/context_loop
MiniMax H3 Plan (Modern)

The Plan node that runs your whole MiniMax H3 movie — now with its wires in order

conditioning/minimax/context_loop
MiniMax H3 Plan Studio (Experimental)

Write your whole MiniMax H3 movie before H3 ever loads a weight

conditioning/minimax/context_loop
MiniMax H3 Manual Chain Policy (Legacy)

One knob for how your MiniMax H3 scenes connect — transition and audio in a single wire

conditioning/minimax/context_loop/policies
MiniMax H3 Chain Preflight

The node that argues with your MiniMax H3 Plan before the GPU does

conditioning/minimax/context_loop
MiniMax H3 Chain Recovered AV

Put the de-roped upscale back on the source scene's clock

conditioning/minimax/context_loop/upscale
MiniMax H3 Context Loop Review Gate

The pause button that turns 'rerun the whole chain' into 'fix one scene'

conditioning/minimax/context_loop
MiniMax H3 Rich Scene Prompt Editor (Experimental)

The experimental scene editor that colors your MiniMax H3 references and can even rewrite them by AI

conditioning/minimax/context_loop
MiniMax H3 Run Manager

Reopen a finished MiniMax H3 production and its reference media, months later, from disk

conditioning/minimax/context_loop
MiniMax H3 Scene Prompt Editor

A proper text editor for your MiniMax H3 scene prompts, because the node-graph text box is not it

conditioning/minimax/context_loop
MiniMax H3 Context Loop Segment + Checkpoint

Checkpoint your MiniMax H3 scene before you're allowed to be happy with it

conditioning/minimax/context_loop
MiniMax H3 Checkpoint Upscale Adapter

Upscale an already-checkpointed MiniMax H3 chain as a separate child run

conditioning/minimax/context_loop/upscale
MiniMaxH3ChainUpscaleAdvance

You'll never add this node by hand — and that's exactly why it matters

_internal/minimax/upscale
MiniMax H3 Upscale Current Scene

Lazily load one MiniMax H3 checkpoint for its upscale pass, exactly as saved

conditioning/minimax/context_loop/upscale
MiniMaxH3ChainUpscaleHandoff

The node that eats the big frames so the next scene doesn't blow up your VRAM

_internal/minimax/upscale
MiniMax H3 Upscale Loop End

The recursive engine that walks your MiniMax H3 upscale chain, one scene at a time

conditioning/minimax/context_loop/upscale
MiniMax H3 Upscale Merger (Legacy)

Stitch your upscaled MiniMax H3 scenes into one HQ MP4

conditioning/minimax/context_loop/upscale
MiniMax H3 Pixel Upscale Conditioning (Experimental)

Second-pass upscaling conditioning that actually matches your new canvas

conditioning/minimax/context_loop/upscale
MiniMax H3 Pixel Upscale Current Scene (Experimental)

This node hands you the frames

conditioning/minimax/context_loop/upscale
MiniMax H3 Upscale Reference Conditioning

Rebuild MiniMax H3's pass-2 conditioning from the checkpoint cache, no original wires needed

conditioning/minimax/context_loop/upscale
MiniMax H3 Upscale Segment Save

Persist one upscaled MiniMax H3 scene so the rest of the chain (and a Drift-Control scene) can use it

conditioning/minimax/context_loop/upscale
MiniMax H3 Masking · Loop Mask Slice

Slice your tracked mask to exactly the scene H3 is about to render

conditioning/minimax/context_loop/masking
MiniMax H3 Context Loop Seam Probe

Did your H3 clip actually continue the last one?

conditioning/minimax/context_loop
MiniMax H3 Masking · Loop Source AV Target

Copy the real source-video interval into H3's joint target — frame-locked, sound included

conditioning/minimax/context_loop/masking
MiniMax H3 Masking · Two-Clip AV Bridge

Generate the missing middle between two real MiniMax H3 clips

conditioning/minimax/context_loop/masking
MiniMax H3 Masking · Apply Target Mask

Attach H3's causal video/audio denoise mask to a real AV target — the heart of inpainting

conditioning/minimax/context_loop/masking
MiniMax H3 Masking · Grid Preview

Your H3 inpaint mask is lying to you — snap it to the real grid

conditioning/minimax/context_loop/masking
MiniMax H3 Masking · Master Audio + Video Prefix

Lock a real soundtrack into H3 without letting denoising mangle it

conditioning/minimax/context_loop/masking
MiniMax H3 Masking · Trim Source AV

Clip source footage to a length H3 can actually eat

conditioning/minimax/context_loop/masking
MiniMax H3 Current Tagged Ref2VA Scene

One node where prompt-driven references meet the scene loop

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Current Tagged Scene Pack (Internal)

The (Internal) packer you're only meeting because ComfyUI expanded a node

conditioning/minimax/context_loop/internal
MiniMax H3 Drift-Control Model Patch (Sigma Split)

Drift Control across a sigma split, without duplicating the model

conditioning/minimax/context_loop
MiniMax H3 Generation Profile

Two dropdowns that decide how every MiniMax H3 scene connects

conditioning/minimax/context_loop/policies
MiniMax H3 Lazy Motion AV Loader

A motion-reference loader that doesn't decode the video (until it has to)

conditioning/minimax/context_loop/media
MiniMax H3 Lazy Motion Scene Preview

See exactly which motion window a scene will pull from

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Legacy 0.4 Policy Adapter

Migrate a 0.4 Plan to 0.5 without re-deciding your audio

conditioning/minimax/context_loop/policies/legacy
MiniMax H3 Lip-Sync Options

Making H3 lipsync a real song instead of mumbling over it

conditioning/minimax/context_loop/policies
MiniMax H3 Context Loop Trim

Cut the pinned frames off H3 output, picture and sound together

conditioning/minimax/context_loop
MiniMax H3 Patch Priority

The placeholder node that makes sure patches don't fight

conditioning/minimax/context_loop
MiniMax H3 Project Asset Carousel

The path-backed asset carousel that kills a wall of H3 loader nodes

conditioning/minimax/context_loop/project
MiniMax H3 Reference Video Fade (Experimental)

Dial back H3's reference video grip instead of dropping frames

conditioning/minimax/context_loop/experimental
MiniMax H3 Reference Video Prep

Normalize any source into a clean one-pass H3 performance reference

conditioning/minimax/context_loop
MiniMax H3 Scene Data Extract

The socket that changes type to hand you one scene fact

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Scheduled Audio Ref

Give one scene a voiceover without renumbering every reference

conditioning/minimax/context_loop/references/legacy_schedule
MiniMax H3 Scheduled Picture Ref

Keep one hero face per scene, without rewriting your prompts

conditioning/minimax/context_loop/references/legacy_schedule
MiniMax H3 Scheduled Ref2VA

The scheduler that compiles your @tags into the right native labels

conditioning/minimax/context_loop/references/legacy_schedule
MiniMax H3 Scheduled Video Ref

Schedule one performance video per scene, soundtrack included

conditioning/minimax/context_loop/references/legacy_schedule
MiniMax H3 Semantic Anchor Bundle

Wire every semantic anchor into one socket

conditioning/minimax/context_loop/references/semantic
MiniMax H3 Semantic Anchors (Internal)

The internal stage that rebuilds H3's Qwen presentation around your anchors

conditioning/minimax/context_loop/references/internal
MiniMax H3 Semantic Picture Anchor

Register a story-beat image H3's Qwen can see but native slots never count

conditioning/minimax/context_loop/references/semantic
MiniMax H3 Source Timeline

One wire to describe your whole source media, decoded only when needed

conditioning/minimax/context_loop/media
MiniMax H3 Source Timeline Scene Preview

Check which slice of your footage a scene actually gets

conditioning/minimax/context_loop/media
MiniMax H3 Tagged Audio Ref

H3 audio references under a stable @tag

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Motion Ref

H3 motion transfer as a reusable @motion subject

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Motion Ref (Lazy VIDEO/Path)

The lazy VIDEO/path variant

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Motion Ref (Source Timeline)

File-backed, timeline-typed, and lazy by design

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Picture Ref

The smallest node in MiniMax H3's prompt-driven reference system

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Ref2VA

How @tags become native H3 references, scene by scene

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Scene Options

The settings bundle that tunes your tagged references in one place

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Tagged Video Ref

Register a whole clip under @performance and let each scene call it when it needs it

conditioning/minimax/context_loop/references/prompt_driven
MiniMax H3 Upscale Reference + Prompt Override

Fix the upscale pass without touching your generation graph

conditioning/minimax/context_loop/upscale
Readme
<p align="center"> <img src="assets/minimax-h3-context-loop.svg" alt="MiniMax H3 Context Loop 0.6 — scene plans that survive the render" width="100%"> </p>

ComfyUI MiniMax H3 Context Loop

Build a multi-scene MiniMax H3 video with one reusable sampling graph. Review each scene, compare takes, resume from checkpoints, and assemble the result later—without keeping the whole production in memory.

Getting started · Workflows · Changelog · Documentation

Changelog

0.6.9 — Plan controls and workflow loading fixes

  • Combine repeated Plan refreshes during workflow loading.
  • Fix default steps and fingerprint input visibility; keep deliberate scene overrides, with an explicit option to clear them.
  • Add a separate-loader source-audio example without the Carousel.

0.6.8 — Fractional H3 mask correction

  • Bring nightly's fractional video/audio denoise-mask correction to main, including feathered AV continuity and native-first compatibility.
  • Correct only missing streams; leave native fixes and source latents intact.

0.6.7 — Automatic PNG sequence variants

  • Conflicting VIDEO PNG exports automatically use _2, _3, etc. folders, preserving earlier exports and keeping subsequent scenes in one variant.
  • Copy verified earlier scenes safely when a rerender changes mid-sequence; retain bounded memory and interrupted-publication recovery.

0.6.6 — Review Gate capture and resizing

  • Capture a still from a saved Review Gate preview into the Project Asset Carousel, with safe project selection and numbered tags for new takes.
  • Resize the optional prompt editor using its new drag handle; height is saved with the workflow and double-click resets it.

0.6.5 — Upscale anchor overrides and clear checkpoint sources

  • Choose semantic-anchor size and mode for cached, rebuilt, or connected upscale references, including the VIDEO conditioning node.
  • Checkpoint Manager explicitly names the output branch, available scenes, Original/DeRoPE source and fallback scenes, independently of preview browsing.

0.6.4 — Preserve reference sizing during recovery

  • Recover saved Max sizing through linked inputs and Tagged Scene Options.
  • Apply Match/Max upscale overrides to automatic caches too, rebuilding native picture conditioning from original masters without changing the source cache.

0.6.3 — Cancellation-safe processing saves

  • Preserve saved DeRoPE/upscale scenes when manifest updates or network acknowledgements fail.
  • Recover interrupted PNG publication from a scene journal; accept recreated video containers when their delivered pixels match the existing PNGs.
  • Keep earlier scenes and conflicting partial files safe. See cancellation and scene-level resume.

0.6.2 — Upscale recovery and saving

  • Recover lost reference caches. Upscale rebuilds missing Ref2VA tensors from verified saved reference media. Per-reference tensor files avoid repeated bundles; legacy caches remain readable and can be converted safely.

  • Reliable deferred sources. Full-sequence upscale respects selected final-cut alternates and saved DeRoPE sources. Checkpoint previews no longer shorten the processing range. Processing tabs expose saved versions and guarded cleanup.

  • Scene-by-scene PNG export. The existing PNG Sequence + Audio node accepts file-backed VIDEO and passes it through after saving each scene, with selectable 8/16-bit PNGs, bounded memory, and network-storage-safe reuse.

  • Exact recovery records. New takes keep their own Plan/workflow snapshots; later edits cannot replace those saved settings. Original media must still exist for a lost reference cache to be rebuilt.

  • Grouped source audio. Assign full mix, vocals and instrumental in the Carousel or Audio Tracks node. Vocals drive lip-sync; the full mix stays the soundtrack. Per-scene Lip-sync On/Off controls do not alter delivery.

Context Loop execution and recovery

  • Maintained workflow path. The release docs now describe the proven memory-safe top-level prompt lifecycle: keep the same Plan and creative model stack, let Loop End finish, wait through the cleanup delay, then queue the next heavyweight scene as a new top-level prompt.
  • Reference propagation fix. Valid prompt @tags again see the connected Tagged registry during preflight without rewriting prompt text or storing reference data in the Plan.
  • Crash-safe review and resume. Review snapshots stay visible after a refresh or restart, and durable handoffs/manual resume keep the same Plan semantics while avoiding duplicate queues.
  • Release packaging. The changelog, compatibility notes, and workflow docs now call out the WSL2 pinned-memory caveat separately from the architectural fix.

0.6 — Better authoring, recovery, and export

  • Production Plan. The familiar scene columns, with settings organized into Project, Canvas, Generation, and Delivery. The original Plan node stays available; migration is optional.
  • Context Builder. Compose picture context from multiple saved-scene windows, choose their frame repartition, and adjust boundary controls in Plan Studio. Audio follows the predecessor by default and can be unlocked for independent context selection.
  • Plan Studio and review. Non-destructive trims, picture-only final-cut alternates, and scene LoRA routes. Candidate selection now keeps seeds and settings synchronized across the Plan and editors.
  • Project Asset Carousel. More reliable project switching and previews, editable semantic-anchor size/mode with downstream inheritance, and video references that keep their own duration.
  • Recovery and editing fixes. Safer checkpoint rollback, stale-response protection when switching projects, and fixes for empty-scene navigation, archive restoration, and source audio after scene resizing.
  • Faster PNG + WAV export. Parallel PNG saving, progress and timing logs, plus synchronized audio export. Connect the video VAE, audio VAE, or both.
  • Rebuilt 0.6 workflows. Clean settings, readable layouts, and wiring checked against the release nodes. Studio examples include the Carousel and Checkpoint Manager; older workflows are kept in the archive.
  • Experimental pixel upscaling. A scene-by-scene DLSS5 + USDU example with conditioning matched to the actual upscaled image size and original audio preserved. Full external GPU refinement testing is still pending.

Full changelog · 0.5 → 0.6 visual overview

<details> <summary>Earlier milestones</summary>
  • 0.5: generation profiles, candidate review, checkpoint branches, project assets, and deferred upscale workflows.
  • 0.4: tagged references, Studio authoring, saved-run recovery, and masked video/audio editing.
  • 0.1–0.3: the recursive scene loop, review gate, per-scene checkpoints, prompt editor, and archival PNG export.
</details>

Install

From ComfyUI/custom_nodes:

git clone https://github.com/seitanism/ComfyUI-H3-Motion-Context-MultiRef.git
git clone https://github.com/ethanfel/ComfyUI-MiniMaxH3-Context-Loop.git

main is the stable release line. Use nightly for development features.

Restart ComfyUI. Use a build with native MiniMax H3 Add Guide support and install your H3 model, text encoder, video VAE, and audio VAE; models are not bundled. ffmpeg on PATH is recommended for review and assembly. Optional upscale packs and example assets are listed in the workflow catalog.

First run

  1. Open T2V Normal and select the four model files.
  2. Give Production Plan a unique run_name, edit the scene prompts, and keep the default Generation Profile for a first test.
  3. Queue. Preflight checks the plan, then the loop renders and checkpoints one scene at a time.
  4. At Review Gate, approve, retry, reroll, or approve and stop. After the last approval, Assemble writes the final MP4.

For Studio workflows, set the run name in Project Asset Carousel instead. See Getting started for setup and recovery steps.

To reuse a still as a reference, scrub the saved Review Gate preview, click Capture frame…, check the destination project and tag, then Save to Carousel. Reusing a tag creates a numbered take without replacing the original asset or video. Capture requires ffmpeg.

Choose a workflow

| Starting point | Workflow | |---|---| | Text | T2V Normal | | First image / first and last images | I2V Normal / FL2V Normal | | Tagged references and timeline editing | Ref2V Studio | | References with a source soundtrack | Ref2V Studio Source Audio | | Inpaint, extend, bridge, or upscale video | All examples and requirements |

Normal keeps the scene-column editor. Studio adds an optional experimental timeline interface without changing the sampling graph.

<details> <summary>How the graph is organized</summary>

How the graph is organized

Context Loop flow, including the muted recovery branch

Only the current scene enters the sampler. Loop End advances to the next scene or passes a manifest to Assemble. The muted Load Manifest → Assemble branch can assemble saved scenes without rendering again.

</details>

Updating from 0.5

Back up your workflows and project folders before updating. Existing Plan nodes remain supported; the new examples have 0.6 in their filenames, and the older examples are preserved under Archive/0.5. Restart ComfyUI after updating and hard-refresh the browser.

Keep the same run_name to resume the same production; use a new one for a different project. Saved runs live in output/h3_chains/<run_name>/, with final movies under final/. Carousel media lives in input/h3_projects/<run_name>/ and is mirrored into the run for recovery. These paths follow your configured ComfyUI input/output directories. Resume checks still reject incompatible generation changes; see Runs and recovery.

The repository is now spelled Context-Loop. Existing installs named ComfyUI-MiniMaxH3-Contex-Loop can stay in place—do not install a second copy just to change the folder name.

Origins and license

Started from NikoDemon80's H3 Motion Context. See Feature origins and Third-party notices for contributors and upstream work.

GPL-3.0 · License · Contributing