H3 Regenerate
Open-H3-Regenerate-2K refinement for MiniMax H3 with fixed, inspectable sampling plans: 2D learned latent upscale, strict refiner LoRA, spatial tiles, plan report and lossless AV latent checkpoints.
H3 Regenerate for ComfyUI
Refine a finished MiniMax H3 video with the Open-H3-Regenerate-2K recipe: a learned latent upscale, then a few refinement steps with the refiner LoRA. The draft's audio is kept exactly.
One plan node sets the whole refinement from a few settings and reports it with a hash. The plan never depends on free memory or other loaded models, so runs are reproducible. Temporal windows and spatial tiles let it fit in less memory, and multi-clip continuation drafts are refined as one latent without a seam. Everything else is core ComfyUI.
Install
- ComfyUI-Manager: search for H3 Regenerate (
comfyui-h3regenerate). - comfy-cli:
comfy node install comfyui-h3regenerate.
Requires ComfyUI 0.44.0+ and
Video Finish
(comfyui-videofinish) for saving. All nodes are beta: their inputs may still
change.
Template: Ref2VA draft, upscale, refine
Open H3 Regenerate - Ref2VA draft, upscale, refine under ComfyUI-H3Regenerate in the template browser. Replace the reference image and prompt, then run. It drafts with the Turbo model, upscales the latent, refines it with the strict LoRA, and puts the draft's audio back unchanged.
Each stage is one subgraph with its settings on the node. Plan settings and LoRA strength do not invalidate the cached draft; the seed does. To refine a draft again later, load its checkpoint with H3 Load AV Latent.
Template: two clips, refined in clip windows
H3 Regenerate - two Ref2VA clips, refine in clip windows drafts two clips on one song, then refines the joined draft in the windows they were drafted in, each with its own reference and prompt. It also needs ComfyUI-Minimax-H3-Continuation and Fixed Soundtrack.
In your own workflow, chain one H3 Regenerate Clip Windows node per clip
into the plan, and combine the clips' conditionings in the same order. Give
each clip Ref2VA conditioning at the refine size, with ref_image_size max,
so the refiner sees the references' fine detail.
Windows and tiles
Each step runs every temporal window and spatial tile through the model and blends the overlaps, so a step costs windows × tiles forwards. One window with a 1×1 grid matches upstream. Overlaps are computed twice: on a 42-token clip, two windows overlapping by 12 tokens cost slightly more than one window, and by 2 tokens about a fifth less.
Caveats
- Model memory estimates still count the whole latent, so more weights may be offloaded than a tile needs. This changes speed, never the plan.
- ControlNet-style patches that read the full latent size are not tile-aware.
- Upstream refines against encoded silence; this pack keeps the draft's audio, so the video stays conditioned on the soundtrack.
- The 3D upscaler has no sharpness tiers; leave the 2D-only settings at their defaults with it.
Development
PYTHONPATH=/path/to/ComfyUI python -m unittest discover -s tests -v
Set H3_2D_UPSCALER, H3_3D_UPSCALER and H3_REFINER_LORA to also test the
real weights, and LBH_UPSCALER_PATH to compare the 2D upscaler with
upstream. After a deliberate change to node inputs, regenerate
tests/schema.json with H3REGENERATE_UPDATE_SCHEMA=1. Releases:
RELEASING.md.
Licensing
MIT, see LICENSE. The 2D upscaler architecture is adapted from LBH-123-AI's
MIT-licensed code; see THIRD_PARTY_NOTICES.md. Model weights are not
included. The refiner LoRA and H3 models have their own licences.