
Akatz Labs, MiniMax H3 Person Remover LoRA (MiniMax H3 Community License)
Share this post:
MiniMax-H3 Person Remover: Open Source Video Cleanup AI
Released on October 8, 2026 by Akatz Labs, the MiniMax-H3 Person Remover LoRA (akatz-ai/MiniMax-H3-Person-Remover-LoRA) removes one selected person from a video clip and rebuilds the background behind them. SAM 3 tracks the person from a short text description, paints the mask green, and MiniMax H3 fills the hole frame by frame. You can test it free in the embedded browser demo below with zero login.
Studio availability. Try the public Hugging Face demo below; MiniMax-H3 Person Remover LoRA is not part of a paid AI FILMS Studio plan (use Nano Banana 2 Image to Image in the image workspace for example instead).
Try the Person Remover Live
Upload a short clip, type who to remove (for example man in gray shirt), and press Remove person. The demo returns the cleaned clip, the green masked input from SAM 3, and the clean first frame it used. Each run processes one window of 2.3 to 5.2 seconds from the start of the clip.
For the best result, upload your own clean first frame, which is the first frame with the person already edited out at the same size and framing. If you skip it, the Space fills that frame automatically with LaMa inpainting. The Space runs on shared ZeroGPU hardware and reserves 90 seconds or more per run.
Original, green mask, and person removed, with the original soundtrack. Showcase by Akatz Labs.
Why a Person Remover Matters for Film
Removing a passerby, a crew member, or a reflection from a live action plate is classic rotoscope and paint work. It can take a compositor days on a moving shot. The Person Remover LoRA turns the job into three inputs, which are the clip, a text description, and a clean first frame.
The approach also keeps the camera move. The default removal prompt asks the model to preserve the rest of the video, including its camera motion and frame timing. That matters for handheld shots, where a static clean plate never lines up.
The LoRA covers one narrow job well. The author calls it an experimental adapter and says the showcase contains selected successful results, not a benchmark of all inputs.
Architecture and Technical Design
The adapter runs on the pruned MiniMax H3 reference to video variant (Ref2VA). The pipeline has three stages that run in order.
- Mask. SAM 3 tracks the described person through the clip, dilates the mask by 5 pixels, and fills it with flat green.
- Reference. A clean first frame shows the model what the empty scene looks like. You supply it, or the Space makes one with LaMa.
- Rebuild. MiniMax H3 with the LoRA at strength 1.0 regenerates the window, using the green clip as a guide and the clean frame as the reference.
For clips longer than one window, the full workflow on the model card runs overlapping windows. Each continuation uses the last generated frame as its next reference and carries 18 frames of generated history, then trims the overlap.
H3 window lengths follow the rule 17n + 5, so the valid lengths are 22, 39, 56, 73, 90, and 124 frames. The author recommends starting with 22 frames, because a longer window uses more memory and is not necessarily better.
Live demo interface by hugging-apps on Hugging Face
The LoRA itself is rank 16, alpha 16, across 208 adapter targets, and excludes the adaln_proj layers. It trained for 2,000 optimizer steps with AdamW 8 bit at a learning rate of 5e-5. The first 250 updates used static five frame pairs, then training moved to a mix of 128 static pairs, 80 moving mask excerpts from 20 scenes, and six preservation clips.
The training set is public as akatz-ai/H3-Person-Remover-v1. The weights file is 155 MB.
Hardware, VRAM, and License Matrix
| Item | Detail |
|---|---|
| Base model | MiniMax H3 Ref2VA, pruned, int8 ConvRot |
| Text encoder | Qwen3-VL 32B in NVFP4 (AWQ) |
| Segmentation | SAM 3.1 multiplex FP16, with its text encoder |
| LoRA | Rank 16, 155 MB safetensors |
| Tested GPU | NVIDIA RTX 4090 24 GB with model offloading |
| Full GPU residency | More than 24 GB |
| Input video | 24 fps, width and height divisible by 32 |
| Demo hardware | Hugging Face ZeroGPU, 90 s minimum reservation per run |
| License | MiniMax H3 Community License Agreement |
The MiniMax H3 Community License excludes the European Union, the United Kingdom, the Republic of Korea, and the United States from its territorial grant. Readers in those regions must get a separate license from MiniMax first. The model card also calls this an Akatz Labs modification, not an official MiniMax release.
Parameter Reference
| Parameter | Demo default | Options | Filmmaker notes |
|---|---|---|---|
| Who to remove | man in gray shirt |
Free text for SAM 3 | Describe clothing, not names |
| Clean first frame | Auto LaMa fill | Your own edited still | Your own frame gives the best background |
| Window | 56 frames, 2.3 s | 56, 73, 90, 124 frames | Start short, then extend |
| Canvas | Fast (576p class) | Fast or Full (768p class) | Full costs more GPU time |
| Sampling steps | 12 | Slider | Sampler is er_sde |
| Keep original soundtrack | On | On or off | The rebuilt video is silent without it |
| Seed | 904234 | Any integer | Reroll a weak window with a new seed |
| Removal instruction | Trained prompt | Verbatim | Changing it weakens the LoRA |
The trained removal prompt, used verbatim by the demo, is below.
Remove the green-masked person and reconstruct the background. Preserve the rest of the video, including its camera motion and frame timing.
Local Python and CLI Setup
Run the same Gradio app that powers the demo. It loads MiniMax H3 through Diffusers, runs SAM 3 for the mask, and attaches the LoRA as a PEFT adapter.
git clone https://huggingface.co/spaces/hugging-apps/minimax-h3-person-remover
cd minimax-h3-person-remover
python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
python app.py
Download the adapter and its public training set for your own pipeline:
hf download akatz-ai/MiniMax-H3-Person-Remover-LoRA H3-Person-Remover-V1.safetensors --local-dir ./remover-lora
hf download akatz-ai/H3-Person-Remover-v1 --repo-type dataset --local-dir ./remover-dataset
Conform your clip to 24 fps and a size divisible by 32 before you start:
ffmpeg -i plate.mov -vf "fps=24,scale=1024:576" -c:v libx264 -crf 16 plate_24fps.mp4
Filmmaker Production Playbook
Pick a continuous shot of about five seconds with no hard cuts. Make the clean first frame in an image editor or with an image editing model, keeping the exact size and framing. In the Studio, an image edit model in the image workspace can produce that frame.
Check the green mask preview before the full run. A missed hand, hair edge, shadow, or reflection stays in the shot. If the person casts a strong shadow, describe the shadow area in a second pass or paint it out of the clean frame.
For mask quality on difficult edges, compare Meta SAM 3 and VideoMaMa. For removal of objects rather than people, see VOID and MiniMax-Remover. To animate a cleaned still inside the Studio, the image to video page lists the current models.
Known Limitations and FAQ
Does the LoRA lock the pixels outside the mask? No. H3 regenerates the full scene, so unmasked areas are not locked to their original pixels. Compare the output against the plate before you use it in a final cut.
What breaks the result most often? A poor clean first frame spreads through later windows. Strong camera motion and hard cuts also break continuity, and a larger mask asks the model to invent more background.
Does it remove the person's voice from the soundtrack? No. The demo keeps the original audio when you leave the soundtrack option on. Use a dialogue isolation tool such as VoxLock for the audio side.
Can I remove more than one person? Run one pass per person. Use the output of the first pass as the input of the second.
Related Reading
- VOID & MiniMax-Remover: Open Source Video Object Removal
- Meta SAM 3: Open Source Promptable Video Segmentation
- MiniMax-H3 Character Swap: Open Source Video Recast
- VideoMaMa & VideoMaMa++: Open Source AI Video Matting
- Compare the current animation models on the Image to Video page.
Sources
Continue Reading
Video & LipSync
- Video Generator
- Text to Video
- Image to Video
- Start-End Frame to Video
- Draw to Video
- Motion Control
- Video Enhancer
- Video Upscaler
- Video Extend
- Video to Video LipSync
- Audio to Video LipSync
- Image to Video LipSync
- Video FaceSwap
- Seedance 2.5
- WAN 3.0
- Seedance 2
- FLUX 3
- Minimax H3
- Vidu Q3 Pro
- Grok Imagine Video 1.5
- Gemini Omni
- Google Veo 3.1
- Kling 3.0 Pro
- Luma Ray 3.2
- LTX 2.3
- Happy Horse 1.1
- Kling 3.0 Motion
- ByteDance Upscaler
- InfiniteTalk
- InsightFace
Image & Edit
- AI Character
- AI Actor
- Art Generator
- Text to Image
- Image to Image
- LoRA Image to Image
- Draw to Edit
- Image LoRA Training
- Remove Background
- Image Enhancer
- MidJourney 8.0
- Krea 2
- OpenAI GPT Image 2.0
- Nano Banana Pro Ultra
- Nano Banana 2 Lite
- Nano Banana Pro
- Minimax Image
- Clarity Pro
- Z-Image Turbo LoRA
- Krea 2 Turbo LoRA
- Z-Image LoRA Trainer
- Qwen Image LoRA Trainer
- Background Erase Network 2 (BEN2)



