Add standard H3 Continuum V2 template
This commit is contained in:
@@ -4,6 +4,43 @@ Native long-form MiniMax H3 video and audio continuation for ComfyUI.
|
||||
|
||||
**H3 Continuum Sampler** generates 1 to 16 H3 chunks as one sequence. It carries the previous raw video and audio latent into the next chunk, keeps accepted chunk latents on CPU, and defers VAE decoding until sampling is complete.
|
||||
|
||||
<!-- h3-standard-workflow -->
|
||||
## Standard workflow
|
||||
|
||||
[Download the standard **H3 Continuum V2** template bundle](examples/H3_Continuum_V2.zip) (recommended).
|
||||
|
||||
[Download the workflow JSON only](examples/H3_Continuum_V2.json).
|
||||
|
||||
The ZIP contains the workflow, its reference image, and a short setup guide. Extract it, copy `H3_Continuum_V2_reference.webp` into `ComfyUI/input/`, then drag `H3_Continuum_V2.json` onto the ComfyUI canvas.
|
||||
|
||||
It is a practical 3 x 5-second starting point for an RTX 5060 Ti 16GB system. Change `chunks`, `chunk_seconds`, resolution, seed, and prompts as needed. The graph uses the stable facade nodes and keeps session, reroll, and report wiring optional.
|
||||
|
||||
Related projects:
|
||||
|
||||
- [ComfyUI Spectrum MiniMax H3](https://github.com/xmarre/ComfyUI-Spectrum-MiniMax-H3) is the optional sampling accelerator used by the bundled graph.
|
||||
- [H3 Motion Context](https://github.com/NikoDemon80/ComfyUI-H3-Motion-Context) is a separate clip-chaining implementation. See the comparison below; it is not required by Continuum.
|
||||
|
||||
### Models referenced by the workflow
|
||||
|
||||
All model URLs stored in the JSON point to the `Comfy-Org/MiniMax-H3` distribution used for ComfyUI workflows. No third-party checkpoint host is referenced:
|
||||
|
||||
- `diffusion_models/minimax/minimax_h3_fl2va_pruned_int8_convrot.safetensors`
|
||||
- `text_encoders/qwen3vl_32b_minimax_h3_nvfp4_awq.safetensors`
|
||||
- `vae/minimax_h3_video_vae_fp16.safetensors`
|
||||
- `vae/minimax_h3_audio_vae_fp32.safetensors`
|
||||
|
||||
No model weights are bundled in this repository. The workflow also contains optional/custom helper nodes from Spectrum, KJNodes (Sage Attention), rgthree, and ComfyUI-Easy-Use. Install those packages or replace/bypass their helper nodes.
|
||||
|
||||
## Why H3 Continuum exists
|
||||
|
||||
Continuum was created to make SVI-style long-form continuation practical with native MiniMax H3: generate several manageable chunks, carry motion and audio context forward, and assemble one result without manually rebuilding the graph for every clip.
|
||||
|
||||
The main benefit is not only continuity. A native monolithic 15-second H3 generation can put substantial pressure on VRAM. Continuum samples shorter chunks separately, carries only the required raw AV latent context, stores completed chunk data outside the active sampling path, and defers decoding until sampling is complete. This can make a 3 x 5-second sequence less likely to run out of VRAM on a 16GB GPU, although resolution, model precision, accelerators, offload settings, and available system RAM still determine the actual limit.
|
||||
|
||||
The standard workflow uses the INT8 ConvRot H3 checkpoint, SageAttention CUDA++, and optional Spectrum acceleration as a practical RTX 5060 Ti 16GB starting point. Spectrum is not required for continuity and should be disabled for native-trajectory quality comparisons.
|
||||
|
||||
Continuum was developed independently before H3 Motion Context was discovered. Both address H3 continuation, but they use different workflow and orchestration designs. No H3 Motion Context source code is used by Continuum.
|
||||
|
||||
## Quick start
|
||||
|
||||
1. Install the custom node and restart ComfyUI.
|
||||
@@ -101,6 +138,61 @@ When troubleshooting, start with fewer accelerators and add them back one at a t
|
||||
| **audio** | Connect directly to the audio input of the output node |
|
||||
| **result** | Optional packed State, Session, and report data |
|
||||
|
||||
<!-- h3-node-guide -->
|
||||
## Sampler and Advanced controls
|
||||
|
||||
### Input image scaling
|
||||
|
||||

|
||||
|
||||
The bundled workflow uses **Scale Image to Total Pixels** before `first_frame`:
|
||||
|
||||
- `upscale_method: area` is appropriate for reducing a larger source image with stable averaging.
|
||||
- `megapixels: 0.60` preserves the source aspect ratio while targeting approximately 0.6 million pixels.
|
||||
- `resolution_steps: 32` rounds width and height to model-friendly multiples of 32.
|
||||
- The bundled portrait is reduced from 848 x 1264 to approximately 640 x 960; the exact rounded size is supplied to the Continuum sampler through the image-size nodes.
|
||||
- If a 16GB GPU runs out of VRAM, reduce this first to `0.30 MP`, which is approximately 448 x 672 for the same portrait.
|
||||
|
||||
This node changes generation resolution, not the Continuum context length. Increasing megapixels raises VRAM use and generation time for every chunk.
|
||||
|
||||

|
||||
|
||||
The main sampler is sufficient for a normal first run:
|
||||
|
||||
- `Sequence Prompt`: one fixed prompt, a `---`-separated list, or a timeline prompt.
|
||||
- `Prompt Format`: `Auto` is the recommended default.
|
||||
- `chunks`: number of generated clips.
|
||||
- `chunk_seconds`: requested duration of each clip.
|
||||
- `width` / `height`: inherited from the connected image-size path when linked.
|
||||
- `continuity`: `Balanced - 22 frames` is the general-purpose default.
|
||||
- `base_seed` and `control after generate`: define the chunk seed sequence.
|
||||
- `seam_correction`: `Auto` is the safe default; it keeps the legacy video seam when correction does not improve the measured boundary.
|
||||
- `prompt_overrides`: optional sparse per-clip replacement pack.
|
||||
- `advanced`: optional settings pack. Leave it disconnected to use normal defaults.
|
||||
|
||||

|
||||
|
||||
Use **H3 Continuum Advanced** only when the basic node is not enough:
|
||||
|
||||
- `last_frame`: optional final-frame anchor.
|
||||
- `session`: resumes or reuses a Continuum session.
|
||||
- `initial_state`: begins from a saved Continuum state.
|
||||
- `prompt_plan`: accepts an externally prepared prompt plan.
|
||||
- `audio_continuity`: keeps audio context across chunk boundaries.
|
||||
- `exact_total_duration`: trims or pads the assembled result to the requested duration.
|
||||
- `Report Detail`: controls report verbosity; use Detailed Report for diagnostics.
|
||||
- `reroll_from_chunk`: regenerates from a selected chunk; `0` disables reroll.
|
||||
- `reroll_nonce`: changes a reroll without replacing the main seed.
|
||||
- `strict_compatibility`: fails closed when the native H3 layout contract is incompatible.
|
||||
- `debug`: enables additional diagnostic logging.
|
||||
- `show_preview`: enables the sampling preview.
|
||||
|
||||
### Wiring reminder
|
||||
|
||||
For a standard graph, connect the patched MODEL path to `model`, the MiniMax H3 text encoder to `clip`, the video/audio VAEs to their matching inputs, the sampler and sigmas, a multiline text node to `Sequence Prompt`, and the scaled source image to `first_frame`. Connect `images` and `audio` to Create Video or Save Video.
|
||||
|
||||
`prompt_overrides`, `advanced`, and the Result helper are optional. Use **H3 Continuum Result** only when you need `last_state`, `session`, or the text report.
|
||||
|
||||
## Recommended first run
|
||||
|
||||
| Setting | Recommended value |
|
||||
@@ -346,6 +438,36 @@ New workflows should normally use the compact **H3 Continuum Sampler** facade.
|
||||
- SageAttention, Sol-Attn, LoRA, and Spectrum remain external packages.
|
||||
- Unknown H3 layout contracts fail clearly instead of producing a subtly incorrect continuation.
|
||||
|
||||
<!-- h3-related-projects -->
|
||||
## Related projects and implementation scope
|
||||
|
||||
| Project | Primary purpose | Workflow model | Main technical difference |
|
||||
| --- | --- | --- | --- |
|
||||
| **H3 Continuum** | Generate and assemble 1-16 H3 chunks | One integrated sampler with optional facade packs | Carries raw paired AV latent context, manages prompts/seeds/session/reroll, defers decode, and can apply post-decode seam correction. |
|
||||
| **H3 Motion Context** | Continue motion and sound from one clip into another | Explicit context, trim, and optional save/load nodes across runs | Pins prior video/audio context into the next native H3 generation and trims the repeated context from the delivered clip. |
|
||||
| **Spectrum MiniMax H3** | Reduce H3 sampling time | MODEL wrapper before the guider/sampler | Forecasts selected post-transformer hidden features. It is an approximate accelerator, not a clip-continuity system, and may change the generated result. |
|
||||
|
||||
Continuum does not copy, vendor, or bundle source code from Spectrum or H3 Motion Context. Compatibility uses ComfyUI's MODEL/payload behavior. For a supported Spectrum build, Continuum emits a small API v1 metadata hint requesting at least two actual solver steps at the start of a continuation chunk; unsupported builds ignore it and continue normally.
|
||||
|
||||
### License and external-content boundaries
|
||||
|
||||
- This repository is licensed under [GPL-3.0](LICENSE).
|
||||
- [Spectrum MiniMax H3](https://github.com/xmarre/ComfyUI-Spectrum-MiniMax-H3/blob/main/LICENSE) is GPL-3.0.
|
||||
- [H3 Motion Context](https://github.com/NikoDemon80/ComfyUI-H3-Motion-Context/blob/main/LICENSE) is GPL-3.0.
|
||||
- The separate [ComfyUI workflow templates repository](https://github.com/Comfy-Org/workflow_templates) is MIT-licensed.
|
||||
- Model files, model cards, and other custom-node packages remain external and keep their own licenses and usage terms.
|
||||
|
||||
The MIT license of the template repository does not change the licenses of model weights or third-party custom nodes. This project does not redistribute MiniMax H3 weights.
|
||||
|
||||
### Tested environment
|
||||
|
||||
- GPU: NVIDIA GeForce RTX 5060 Ti 16GB.
|
||||
- System memory: 64GB RAM.
|
||||
- Verified baseline environment: 3 x 5-second runs at approximately 448 x 672 (0.3 MP), using the INT8 ConvRot checkpoint and SageAttention CUDA++.
|
||||
- Bundled template profile: 3 x 5 seconds at 0.6 MP. Treat this higher-resolution profile as a starting point and monitor VRAM on the first run.
|
||||
- Longer-than-15-second chains are supported by the node design but have not yet been validated in this environment.
|
||||
- OOM avoidance is not guaranteed; peak usage depends on resolution, precision, model patches, Spectrum settings, ComfyUI offload behavior, and other loaded nodes.
|
||||
|
||||
## Development checks
|
||||
|
||||
Use the same Python environment as ComfyUI:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 56 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -0,0 +1,24 @@
|
||||
H3 Continuum V2 standard workflow
|
||||
|
||||
Contents:
|
||||
- H3_Continuum_V2.json
|
||||
- H3_Continuum_V2_reference.webp
|
||||
|
||||
Setup:
|
||||
1. Copy H3_Continuum_V2_reference.webp to ComfyUI/input/.
|
||||
2. Drag H3_Continuum_V2.json onto the ComfyUI canvas.
|
||||
3. Install or replace any custom nodes reported as missing.
|
||||
4. Confirm the model selections before queueing.
|
||||
|
||||
Default profile:
|
||||
- 3 chunks x 5.0 seconds
|
||||
- Timeline prompt with three sections
|
||||
- Scale Image to Total Pixels: area, 0.60 MP, 32-step rounding
|
||||
- Continuity: Balanced, 22 frames
|
||||
- Seam correction: Auto
|
||||
|
||||
Reference test environment:
|
||||
- NVIDIA GeForce RTX 5060 Ti 16GB
|
||||
- 64GB system RAM
|
||||
|
||||
The 0.60 MP profile is a starting point. If VRAM is insufficient, reduce the image scale to 0.30 MP.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
Reference in New Issue
Block a user