--- license: other license_name: minimax-h3-community-license license_link: LICENSE base_model: MiniMaxAI/MiniMax-H3 pipeline_tag: video-to-video library_name: minimax-h3 tags: - video-editing - character-replacement - video-to-video - lora --- # Viggle Remake ### Remake any video. Just ask.
lora/swap, 69 cuts, original
soundtrack (unmute). AI-generated parody: the people shown did not take part in, approve or endorse it.
Source: Mark Ronson ft. Bruno Mars, Uptown Funk (2014). To make one yourself, see [the MCP](#agent-the-mcp-server).
Burly Brawl. The Matrix Reloaded (2003), Neo as a tuxedo cat and every Agent Smith as a
shiba inu, 101 seconds with lora/swap and the original soundtrack.
**Viggle Remake is built agent-first.** Give an agent (Claude Code, codex, anything that speaks MCP) a video and one
sentence: "recast the band as US politicians", "make it snow", "turn everyone into cats". It finds the cuts, paints
the keyframes, renders every window, checks its own work and hands back the finished film, with the original motion,
camera, timing and soundtrack. [Set up the agent](#agent-the-mcp-server).
Recast people · swap outfits · add or remove objects · change the weather, light, setting or style · whole films,
not just clips.
Prefer to drive it by hand? Write a prompt, paint one to four frames, and [`sample.py`](#quick-start) renders the shot.
Remake is the "Viggle-Animate v2" previewed on the Viggle-Animate card: Animate replaces a character; Remake also
swaps, removes and inserts objects, and changes the setting, the weather or the light.
## Quick start
> **Just want to use it?** The [Viggle app](https://viggle.ai/meme/app/home?ui=v2) runs Remake for you. The rest of this section is for running it on your own GPUs.
You need the base model (about 144 GB of its files) and this repository's LoRAs and sampler:
```bash
hf download MiniMaxAI/MiniMax-H3 --local-dir ./MiniMax-H3 \
--include "modular_model_index.json" "transformer/*" "text_encoder/*" "tokenizer/*" \
"processor/*" "vae/*" "audio_vae/*" "scheduler/*" "audio_scheduler/*" "docs/*"
hf download Viggle/Viggle-Remake --local-dir ./Viggle-Remake \
--include "lora/*" "inference/*" "examples/*" "requirements.txt" # 5.5 GB; the whole repo is ~210 GB
pip install -r Viggle-Remake/requirements.txt # plus an ffmpeg binary on PATH
python Viggle-Remake/inference/sample.py --mode swap \
--video source.mp4 --prompt prompt.txt \
--ref ref1.png --ref ref2.png --pin 12 --pin 96 \
--frames 124 --short-edge 480 --seed 0 \
--base ./MiniMax-H3 --lora-repo ./Viggle-Remake --out out.mp4
```
`sample.py` renders one window of 90–345 frames (`--frames` = 17n + 5, at 24 fps; we recommend up to 294)
with the source soundtrack; `--short-edge 736` renders 1280×736. Its defaults are the settings every clip
here used. [`examples/demo.sh`](examples/demo.sh) reruns one example of each mode from
[`examples/inputs/`](examples/inputs): if the turbines are still there, or the pizza maker is unchanged,
the LoRA did not load.
**Smaller LoRAs:** `--rank 128` or `--rank 64` loads `lora_lowrank/` (1.34 / 0.67 GB), near-identical output.
## ComfyUI and smaller GPUs
Node pack, workflows, and int8/GGUF files down to 12 GB: [`COMFYUI.md`](COMFYUI.md).
## Agent: the MCP server
[`mcp/`](mcp) lets a coding agent (Claude Code, codex) remake a whole film: it cuts the windows, paints
the keyframes, writes the prompts, renders on your GPUs and splices the result with the soundtrack.
```bash
hf download Viggle/Viggle-Remake --include "mcp/*" --local-dir viggle-remake # the MCP only, not the weights
cd viggle-remake/mcp
pip install -e . # the server
pip install -e '.[worker]' # GPU machines: also the render worker
```
Do not `git clone` this repository: with git-lfs it downloads all ~210 GB of weights.
To remake White House Funk (source, eight characters and task in
[`mcp/examples/white-house-funk/`](mcp/examples/white-house-funk)):
```bash
for g in 0 1; do viggle-remake-worker --gpu $g > worker_$g.log 2>&1 & done # one render worker per GPU
examples/white-house-funk/run.sh # codex (ChatGPT plan login) runs the whole film: ~1.5 h on two GPUs
```
The agent paints its own keyframes, so every run differs in detail. Setup, tools and paint backends:
[`mcp/README.md`](mcp/README.md).
## Two modes
Each mode is a LoRA (rank 256) on MiniMax-H3's base `transformer`; `--mode` picks one.
- **`--mode swap`** (`lora/swap`): replace people and characters, one or several at once.
- **`--mode edit`** (`lora/edit`): everything else: swap, remove or insert objects, change the background, weather or light.
## Inputs: painted frames and the prompt
Pass one to four painted frames (`--ref`, called `