Open-Sourced MiniMax-H3 Ref-V2V Workflow: Precise Regional Motion Control
Primary_Internal9365 · reddit · 2026-08-08
Searching for a local, controllable alternative to closed APIs like Kling or Gemini, the author built a Reference Video-to-Video (Ref-V2V) ComfyUI workflow based on MiniMax-H3 and open-sourced a custom node.
Core Techniques & Solutions:
- Custom Attention Mask Node: Hooks into DiT self-attention layers, integrating with SAM3 for region-specific control (e.g., locking character motion while replacing backgrounds).
- Smart 32-Multiple Padding: Dynamically applies Reflect Padding to round input resolution to the nearest multiple of 32, preventing dirty resizing and resolution loss.
- 17-Frame VAE Sync: Automatically matches the temporal VAE packing rules to prevent decoding crashes or abrupt truncations.
- Boundary Drift Fix: Implements a Head & Tail Freeze Frame Padding system (15 dummy frames each) to solve motion warping at the video's end.
The author also highlights an unsolved mystery: the frame index offset required for trimming fluctuates between 15 and 30 across different videos. Tested on an RTX 5090, the workflow supports an unofficial 4-step Turbo LoRA for acceleration.
More from coding & agent
- Microsoft exec explains AI governance with a 4-step closet-cleaning method — donasarkar · 2026-11-30
- Catching steps your AI agent silently skipped: declare required actions per task — Ok-Machine7983 · 2026-11-30
- Rollikey: open-core MCP airlock and LIFO rollback proxy for AI agents — Rollikey · 2026-11-30
- MoonBit 1.0 RC Ships with Stable Compiler, Targeting February 2027 Release — harryshum · 2026-11-30
- A wall of 600 recent AI agent projects, ranked purely by code merit — EmuAfter5933 · 2026-11-30
- 6 MCP servers ate 30k tokens before the first prompt: a Claude Code slimming recipe — for-entire-phonly · 2026-11-30