BobMcoy/Minimax-H3-Temporal-Latent-Upscaler
fixing motion blur and upscaling for MiniMax H3 in ComfyUI
2 min read
A node pack and temporal upscaler for the MiniMax H3 video generator, operating directly in latent space. Instead of decoding to pixels and re-encoding, the tool analyzes 17-frame blocks for fast motion, stretches target moments to 2x or 3x frames for clean inpainting, and restores the original 24 fps rate and timing. The solution reduces VRAM usage and provides a unified workflow with convenient mode switches.
Key features
- High performance: the temporal upscaler runs 1.81x faster with a 32% reduction in VRAM thanks to optimized convolutions and dynamic memory management.
- Automatic skip: the built-in scheduler automatically skips the second pass in 0.02 seconds on calm video clips with no motion.
- Keyframe preservation: symmetric token centering eliminates first-frame drift in Image-to-Video and First+Last-Frame tasks.
- Unified workflow: combines text, image, reference, and audio modes into a single production pipeline with switches.
What you can do
- Remove blur and artifacts: fix motion blur on feet and fast movements (backflips, punches, quick transitions) in MiniMax H3 videos.
- Perform temporal and spatial upscaling: increase detail and frame rate for problem segments without recalculating the entire video.
- Run on lower-end hardware: use optimizations to work on GPUs with 8 GB VRAM without out-of-memory (OOM) errors.
- Work with audio: preserve and decode original stereo tracks while cleaning up numerical anomalies (NaN/Inf).
Example
Cloning the repository into the ComfyUI custom nodes folder:
git clone https://github.com/HyRo34/Minimax-H3-Temporal-Latent-Upscaler.gitRead more
Details• Upscaler (3x temporal + 1.5x spatial): 3.10 sec, 1.16 GiB VRAM on an RTX 4060.
• First pass with FirstBlockCache (H3 Safe): 11% speedup.
• Second pass with Triton Sol-Attn INT8: 21% speedup and increased sharpness.
• Required custom nodes: ComfyUI-MAINodes, rgthree-comfy, ComfyUI-KJNodes, ComfyUI-GGUF.












Comments