Skip to content
Projets

KadoBOT/ComfyUI-H3-Continuity-Studio

Voir sur GitHub

À propos

ComfyUI Timeline Studio for MiniMax H3: multi-shot video, visual memory across scenes and angles, and local or cloud Story writing.

Design et médias

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
Historique en cours
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

H3 Continuity

H3 Continuity is a ComfyUI custom node pack for authoring, editing and rendering sequences with MiniMax H3. Its Timeline organizes clips and carries context across continuing clips; the Studio adds non-destructive video editing, story, reference and timeline tools. It also includes nodes for saved segments, stills, scene maps, chunk media routing and H3 context windows.

Inside Studio you can mark any [In, Out] range on a rendered clip to run surgical visual AI patches, instant CPU Mute/Duck or Arm D AI audio patches, and keyframe-first Fix frame still fixes — alongside instant non-destructive trim, slip/slide, razor split, branch-from-frame, freeze frame, DAW-style take comping, multi-take batching and two-tier Flatten (instant CPU lossless stitch or GPU latent encode). See Editing clips, patches, and audio.

Visual memory can bring selected moments from earlier clips into a later shot, including after an exterior scene or a camera-angle change. A per-clip scene map places the camera and characters on a top-down plan of the place. Studio's built-in Story writer, Prompt Field AI Assist, chunk AI Assist and AI Draft Bridge run either through a standalone native ComfyUI Generate Text node (TextGenerateV2 wired directly to H3C_Timeline.text_generator, zero H3C_Story node required — see examples/h3c_timeline_generate_text_editing.json) or through any OpenAI-compatible HTTP endpoint, local or cloud. Projects persist in local SQLite (user/__system/h3c_projects/studio.sqlite3) with the Projects Library Manager (Ctrl/Cmd+K), lightweight checkpoints, on-demand draft/master video joining, and live external update sync.

For long continuing chains and visual-memory cuts within a scene, the optional H3 Continuity Protection node stabilizes predicted latents (x0) and carried video-memory references during sampling against the clean scene root (mean, upper-clamped channel std, and 3x3 high-frequency overshoot damping, separately on H3's 1-frame and 4-frame latent phases). It works with both Veda Sparse Attention and native dense attention, requires no extra node pack or model, bypasses disk sampling cache on protected clips, and does not support Context Windows. In a verified 5-clip Veda production chain and an 11-hop scene-memory cut (generation_64933481474b4b2abef0f94d0afaff08, see degradation-fix report), protection cut CIELAB color/brightness drift from ΔE76 = 4.73–10.98 (Clips 2–5) down to 0.28–1.47, rescued Clip 11 from ΔE76 = 8.31 to 1.35 (s065_ref1), left fresh-scene flashbacks unchanged, and kept carried overlap error at 0.0. For shots that pan directly from dark foregrounds into bright light sources, optional mode="contrast_only" prevented wall darkening on the DP2 wall-onset fixture (wall_luma 75.71 vs 73.82 baseline).

Watch the contest demo (under two minutes) · Full demo · Reproduce the example

The same room from another camera angle

Installation

Install a current ComfyUI with working MiniMax H3 support and its model files. Clone this repository into ComfyUI/custom_nodes/ComfyUI-H3-Continuity-Studio, or extract the source archive there. Run python -m pip install -r requirements.txt from this folder using the same Python environment as ComfyUI. On Windows portable installations, use the portable installation's python_embeded/python.exe instead of a system Python.

Restart ComfyUI, load examples/h3c_timeline_generate_text_editing.json (or legacy examples/h3_story_studio.json), and select the H3 diffusion model, text encoder, video VAE, audio VAE and optional LoRA installed on your system. Example workflows record model names from their original environment; they are not downloaded automatically. They also include an optional still-image subgraph and may require additional models. The source package was checked in an isolated CPU-only ComfyUI startup; a GPU and suitable model files are required for generation.

AI writing features (Story writer, Prompt Field AI Assist, chunk AI Assist, and AI Draft Bridge) require either a native ComfyUI Generate Text node wired to H3C_Timeline.text_generator or an OpenAI-compatible HTTP endpoint configured in Studio → Story → Brief. Models, provider services and their terms are separate from this node pack. Context Windows requires a ComfyUI version containing the core MiniMax H3 Context Windows node.

First sequence

  1. Start ComfyUI and open examples/h3c_timeline_generate_text_editing.json through its workflow loader.
  2. In the model loader nodes, select compatible H3 diffusion, text encoder, video VAE and audio VAE files available on your installation. Configure the example LoRA only if it matches your model. The workflow also contains a still-image recipe; its additional model is optional for video-only work.
  3. Open the Timeline Studio, add or edit a box and supply a prompt. Render the first box through the connected H3 workflow. Add another box configured to continue, then render it and inspect the join. Start with short clips and enough GPU memory for your chosen model.
  4. Story & AI Assist are optional. To use them, wire a native ComfyUI Generate Text node to H3C_Timeline.text_generator or configure an OpenAI-compatible API endpoint and model in Studio → Story → Brief. An external endpoint receives the story text and, when enabled, reference pictures. Check the provider's privacy and pricing terms.

Model names and paths in examples are illustrative; select files available in your own installation. ComfyUI and the chosen model determine the required hardware and software versions. H3 Continuity does not download model weights or provider credentials.

Avoid installing a second copy beside an existing H3 Continuity installation: both copies register the same nodes and routes. Back up projects before replacing an existing installation. Keep ComfyUI behind your usual authenticated access boundary if you expose it remotely.

MCP for AI agents

Codex and Claude Code can launch the standalone stdio adapter against a local or remote Studio. Update the node on the serving ComfyUI host first, then install the adapter with Python 3.11+ in its own environment, separate from ComfyUI:

uv run --project "/absolute/path/ComfyUI-H3-Continuity-Studio/mcp_adapter" h3c-mcp --studio-url http://127.0.0.1:8188 --check

The adapter exposes saved-project editing, render/Story/still tools and the eight skills through the MCP Skills extension and ordinary resources. Browser synchronization is not required. Client skill activation depends on extension support; ordinary guidance reads and the filesystem installer remain available.

See installation and Codex/Claude Code setup for uv/venv launchers, Windows paths, remote URLs, bearer environment variables and diagnostics. The MCP reference covers tools, snapshots, revisions and retained submission receipts.

Documentation

The full user guide, with screenshots of every feature, is at https://kadobot.github.io/ComfyUI-H3-Continuity-Studio/. Its source is in guide/.

Deeper reference notes: Story Studio, external Timeline, and continuity checks. Generation quality and continuity vary with the model, inputs and settings; inspect the resulting joins.

Credits

H3 Continuity Protection builds on the public keystone/capstone anchor and late-locking ideas in roycho87's Geiru Context Suite. Sampler-synchronized context noise is credited to ethanfel / Lumifel, whose H3 Context Loop work Geiru also credits. Our native implementation is independent; it does not vendor Geiru's GPL-3.0 source or require its node pack.

The optional attention balance follows Geiru's Keystone Attention, which is based on an idea by ckinpdx: biasing H3's attention by part of its sequence, published as ckinpdx's Carry Attention in ComfyUI-MMH3Tools. The default blocks are Geiru's published lighting blocks. Ours is again an independent native implementation; see the upstream review. Geiru's Hybrid Windows changes are not included. See third-party notices for this project's other sources and attributions.

License and third-party material

Original project code is offered under the MIT License. The public release does not include the optional MiniMax H3 prompt guides. If you have obtained them under terms that permit your use, place base-en.txt and ref-en.txt in h3_continuity/h3_guide/ and restart ComfyUI. Without them, the node pack runs and its instruction bundle explicitly reports the missing guides. The guides and H3 model are subject to MiniMax terms, including territorial restrictions; see the upstream project and the included notice. Model weights and external dependencies have separate licenses. Review those terms before use or redistribution. See third-party notices for adapted guidance and attribution.

Explorer des projets similaires

Chargement…