Best local MiniMax character swap workflow: SAM3 mask + color inversion, ~2.5 min on RTX 4090
Pleasant-Living-3702 · reddit · 2026-10-02
A Reddit user open-sourced a simplified local ComfyUI workflow for MiniMax character swapping, calling it the best local method available.
How it works
- SAM3 selects the character/area to change; the selected area's colors are inverted before generation, which helps MiniMax replace subjects more consistently
- The source video drives mouth/body motion and scene; a reference image drives the replacement's appearance
Performance: RTX 4090 (24GB VRAM) + 32GB DDR5, 3-second video at 0.8 MP in about 2 min 30 sec
Three modes (switched in the green settings node)
- Character replacement / video inpainting: swap characters or edit shirt/hair color, objects
- Reference-to-video generation (experimental)
- First-to-last frame transitions (experimental)
Useful features
- Save characters: store a reference image with a detailed character description for reuse across videos
- Trim the source video inside the workflow, no external editor needed
- Masking options: SAM3 by description, rectangle, or no mask (full frame re-render)
Starter settings: the example uses a Fixed seed for reproducibility (switch to Randomize to explore); start at 0.8 MP, try 1.0 MP for more resolution. Nothing is perfect — expect multiple attempts, and matching seeds doesn't guarantee identical results across setups.
More from coding & agent
- Open-source Switch Buddy puts Claude Code, Codex and other agents in shared rooms — anthara_ai · 2026-11-19
- Stanford launches CS329Z 'Engineering AI Agents': build RAG, tool use, agent loops from scratch — stanfordnlp · 2026-11-19
- Stanford CS329Z Lecture 5 compares DSPy vs. LangGraph agent framework approaches — stanfordnlp · 2026-11-19
- Mistral Large 4 coding test: 2 hours of agentic work burned just €0.82 of quota — qtnx_ · 2026-11-19
- Railway breach investigator: LLM attacker's infrastructure still targeting other AI companies — cyb3rops · 2026-11-19
- Gradio and HF launch hackathon: reproduce NeurIPS 2026 papers with AI agents — Gradio · 2026-11-19