Extensions/ComfyUI MiniMax-H3 Video PixelHead (Experimental Preview)
ComfyUI Extension

ComfyUI MiniMax-H3 Video PixelHead (Experimental Preview)

[Experimental Preview - Not Recommended for Production] 3D video pixel readout head for MiniMax-H3 in ComfyUI

By Wither033·Created about 21 hours ago·Updated about 20 hours ago· 2
Wither033/ComfyUI-MiniMaxH3-PixelHead
Nodes—
On cloudLocal install
Stars2
Updatedabout 20 hours ago
Readme

ComfyUI-MiniMaxH3-PixelHead (v0.2.0 Preview)

3D video direct pixel readout head for MiniMax-H3 in ComfyUI (45.7 MiB BF16 vs 2.68 GB stock ViT3D Video VAE).

English | 简体中文

Status: Preview License: MIT Hugging Face Comfy Registry

[!WARNING] Not recommended for production use yet — please wait for upcoming optimizations.

This v0.2.0 checkpoint is published early as an experimental baseline and low-VRAM layout preview tool:

  • Global colors, motion, (1, 4, 4, 4, 4) non-uniform frame timing (17k + 5 frames), and flat 2D graphics (36.73 dB) decode properly.
  • However, natural high-frequency textures (facial details, oil brushwork, foliage) and fast foreground occlusion (25.91 dB, LPIPS = 0.29–0.37) are noticeably over-smoothed compared to the official 2.68 GB 36-layer ViT3D Video VAE.
  • Do not use this version for final video renders. We are working on a follow-up update with perceptual LPIPS/frequency losses and native 16px latent injection.

Benchmark (384×256×22f, NVIDIA L4)

Tested on 20 held-out 22-frame clips (T_lat = 7, covering two (1, 4, 4, 4, 4) cycles; frames 0, 11, 17 shown below) against minimax_h3_video_vae_int8_convrot.safetensors:

| Video Decoder | Size | Median Latency | Speedup | Mean PSNR | Natural-Clip PSNR | LPIPS-VGG (↓) | | :--- | :---: | :---: | :---: | :---: | :---: | :---: | | Official minimax_h3_video_vae (ViT3D) | 2680.8 MiB | 251.30 ms | 1.0× | (ref) | (ref) | 0.0000 | | MiniMaxH3VideoPixelHead (v0.2.0) | 45.7 MiB (BF16) / 91.4 MiB (FP32) | 29.59 ms | 8.5× | 31.03 dB | 25.91 – 30.13 dB | 0.2338 (0.29–0.37 natural) |

Breakdown by motion type:

| Subset | PSNR (↑) | LPIPS-VGG (↓) | Observation | | :--- | :---: | :---: | :--- | | kinetic_cel_typo (flat shapes & text) | 36.73 dB | 0.0547 | Clean edges; pulls the aggregate mean up to 31.03 dB. | | camera_pan_zoom (art/photo pan & zoom) | 30.13 dB | 0.2923 | Overall structure matches, fine brushwork and facial details are soft (25.7–33.2 dB). | | static_lockoff (static textures) | 29.17 dB | 0.3059 | No temporal flicker, softened surface grain. | | parallax_occlusion (moving occlusion) | 25.91 dB | 0.3677 | Blur along fast occlusion boundaries. |

Keyframes f=0, 11, 17: stock ViT3D VAE (top rows) vs v0.2.0 preview (bottom rows)

Known Issues

Four factors explain the current softness and are targeted for the next revision:

  1. 16× larger pixel volume per DiT token: 2D heads (Qwen-Image 2.1, Krea-2) reconstruct 16×16 = 256 pixels per token. MiniMax-H3 combines a 16× spatial VAE with (1, 2, 2) DiT patching, so each token spans 4 × 32 × 32 = 4,096 pixels. The stock decoder uses a 36-layer 2048-dim ViT3D, whereas v0.2.0 uses a 23.96M-parameter ConvNeXt (width = 768).
  2. Pixel-space MSE regression at high terminal noise ($\sigma_{\text{last}} = 0.6316$): Under video_shift = 12.0, 8-step sampling starts its last step at $\sigma = 0.6316$. Training with pixel L1 + MSE + gradient alone (without perceptual LPIPS) causes the small network to average out uncertain fine textures.
  3. Latent injection resolution: x0_hat_vid ([B, 24, T_lat, H_lat, W_lat]) already sits on the 16px grid, but v0.2.0 folds it 2×2 into the 32px entry layer instead of feeding it into the 16px stage directly.
  4. Calibration set size: Trained for 1,800 rollouts on 280 clips at 384×256 (25% synthetic flat graphics).

Related Repositories

| Model | Status | ComfyUI Node | Weights | Notes | | :--- | :---: | :--- | :--- | :--- | | Qwen-Image 2.1 | Ready | Wither033/ComfyUI-QwenImage21-PixelHead | pocis/Qwen-Image-2.1-PixelHead | 48.8 MiB (1x) / 52.1 MiB (1x+2x), 4-ch RGBA, 5.55 ms (67.1×), 33.91 dB | | Krea-2 | Ready | Wither033/ComfyUI-Krea2-PixelHead | pocis/Krea-2-PixelHead | 52.6 MiB BF16, 6144d bridged RGB, 59.55 ms (24.7×), 33.33 dB | | MiniMax-H3 (this repo) | Preview | Wither033/ComfyUI-MiniMaxH3-PixelHead | pocis/MiniMax-H3-Video-PixelHead | Not recommended for production yet; 45.7 MiB BF16, 8.5× faster, soft fine detail | | Training Code & Notes | Reference | Wither033/FastFrames-PixelHead-Trainer | HF Collection | Training toolkit, DiT hook notes, and Colab L4 scripts |

Installation (For Testing / Drafting Only)

  1. Clone into ComfyUI/custom_nodes (or comfy node install comfyui-minimaxh3-pixelhead):
    cd ComfyUI/custom_nodes
    git clone https://github.com/Wither033/ComfyUI-MiniMaxH3-PixelHead.git
    
  2. Download minimax_h3_video_pixel_head_bf16.safetensors (45.7 MiB) from pocis/MiniMax-H3-Video-PixelHead into ComfyUI/models/pixel_heads/.
  3. Example workflows are in example_workflows/. Place MiniMax-H3 Video Pixel Head Tap after MiniMaxH3SigmaShift, and connect MiniMax-H3 Video Pixel Decode (Zero Video VAE) to SamplerCustomAdvanced.

License & Credits