
BackgroundErase / Prama LLC (MIT License)
Share this post:
BEN3: Open Source Image and Video Background Removal
BEN3 (Background Erase Network 3) is an open source image and video background removal model released by Prama LLC on December 1, 2026 under the permissive MIT license. Built on a DINOv3 visual encoder and multi hypothesis segmentation architecture, BEN3 isolates actors, hair strands, glass reflections, and fast moving foreground subjects for clean VFX compositing. You can test BEN3 free right now in the embedded browser demo below with zero login.
Studio availability. Try the public Hugging Face demo below; BEN3 is not part of a paid AI FILMS Studio plan (use BEN2 Background Remover in the image workspace for example instead).
Try BEN3 Live in Your Browser
Upload a film still or a short video clip in the interactive Hugging Face Space below. Switch between the Image removal and Video removal tabs to inspect alpha extraction directly in your browser without creating an account.
Architecture and Technical Design
BEN3 upgrades the dichotomous image segmentation pipeline introduced in BEN2 by pairing a DINOv3 vision transformer backbone with a multi hypothesis prediction head. Standard matting networks emit a single deterministic alpha mask, which often averages uncertain boundaries around motion blur, translucent smoke, or backlit hair. BEN3 evaluates multiple competing foreground hypotheses during training and selects the sharpest edge structure at inference time.
The release paper (arXiv:2611.38399) details how the DINOv3 visual encoder captures dense semantic context across full frames while lightweight high resolution refinement stages recover fine alpha gradients. Because the model shares one unified weight checkpoint for both single frames and video sequences, VFX artists avoid swapping between separate still cutout models and temporal video mattes.
Video matting demonstration by BackgroundErase / Prama LLC (MIT)
Temporal consistency decides whether an AI matte survives a real film edit. Single frame cutout tools often flicker along hairlines and clothing edges when an actor turns toward a bright practical light.
BEN3 processes batched frames directly in PyTorch and supports transparent video export or immediate background plate replacement, cutting manual rotoscoping time on green screen free shoots.
Hardware, VRAM, and License Matrix
BEN3 ships under the MIT license, allowing commercial film production, broadcast VFX, and studio pipeline integration with no territory limits or revenue caps.
| Deployment Target | Precision | Estimated VRAM | Throughput Profile | Commercial License |
|---|---|---|---|---|
| Consumer GPU (RTX 3060 / 4060) | FP16 | 4 GB to 6 GB | Fast single frame and short 1080p clips | MIT (unrestricted) |
| Workstation GPU (RTX 4090 / A5000) | FP16 / BF16 | 8 GB to 12 GB | High throughput batched 1080p and 4K plates | MIT (unrestricted) |
| Studio Render Node (A100 / H100) | BF16 | 16 GB+ | Multi stream batch rotoscoping | MIT (unrestricted) |
| CPU Fallback | FP32 | System RAM (8 GB+) | Slow batch processing for stills only | MIT (unrestricted) |
Parameter Reference
When running BEN3 locally via the official Python package or custom PyTorch scripts, the following parameters control matting precision and edge refinement.
| Parameter | Type | Default | Production Effect |
|---|---|---|---|
refine_foreground |
Boolean | False |
Runs fast foreground color estimation to remove background color spill on semi transparent edges |
input_size |
Tuple | (1024, 1024) |
Internal inference resolution before resizing the alpha matte back to native plate dimensions |
batch_size |
Integer | 4 to 16 |
Number of video frames processed together on GPU to maximize throughput |
fps |
Float | Source FPS | Preserves original editorial frame rate when writing transparent WebM or ProRes 4444 intermediates |
background_mode |
String | transparent |
Outputs RGBA alpha channel or composites foreground directly over a custom color or plate |
Local Python and CLI Setup
BEN3 integrates cleanly with standard PyTorch and huggingface_hub environments. Install the repository dependencies and load the PramaLLC/BEN3 checkpoint directly via PyTorchModelHubMixin.
git clone https://github.com/PramaLLC/BEN3.git
cd BEN3
pip install torch torchvision pillow huggingface_hub opencv-python
Run single image or batched frame inference in Python to export an RGBA PNG plate for compositing in Nuke, After Effects, or DaVinci Resolve.
import torch
from PIL import Image
from ben3 import BEN3
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model = BEN3.from_pretrained("PramaLLC/BEN3").to(device).eval()
image = Image.open("actor_plate.png").convert("RGB")
with torch.inference_mode():
foreground = model.inference(image, refine_foreground=True)
foreground.save("actor_plate_rgba.png")
For video sequences, decode frames with FFmpeg into a lossless PNG sequence, run batched inference with refine_foreground=True to suppress edge haloing, and re encode as ProRes 4444 (-c:v prores_ks -profile:v 4444 -pix_fmt yuva444p10le) so colorists retain clean premultiplied alpha.
Filmmaker Production Playbook
- Location shoot plate isolation. Use BEN3 to pull garbage mattes and clean actor holdouts on practical location shoots where setting up a 20 foot chroma screen was impossible.
- Foreground spill suppression. Enable
refine_foreground=Truewhenever subjects stand near strongly tinted neon signs, blue sky, or practical tungsten lamps so the extracted edges blend cleanly onto dark replacement plates. - 2.5D parallax and virtual set extension. Combine BEN3 foreground mattes with metric depth maps from Depth Pro 2 or Depth Anything 3 to place atmospheric fog, CG debris, or virtual signage behind actors without manual spline rotoscoping.
- Cloud alternative inside Studio. When working inside AI FILMS Studio without a local GPU, run BEN2 Background Remover inside the image workspace and chain the isolated subject straight into an image-to-video pass in the Nodes Graph Editor.
Known Limitations and FAQ
Does BEN3 handle heavy motion blur and semi transparent glass? Multi hypothesis segmentation improves hair and soft edge accuracy compared to single mask models, though extreme 180 degree shutter motion blur can still require a quick manual soft matte feather in compositing.
Can I export true 10 bit alpha video for DaVinci Resolve or Nuke? Yes. Export individual 16 bit or 8 bit RGBA PNG frames from Python and wrap them into ProRes 4444 or EXR image sequences using FFmpeg.
How does BEN3 compare to BRIA RMBG 3.0 and BiRefNet? BEN3 is fully MIT licensed for commercial projects with native video batching support, whereas some competing matting weights restrict commercial redistribution or target static e commerce stills only.
Related Reading
- BRIA RMBG 3.0: Open Source VFX Background Removal
- BiRefNet, Real-ESRGAN & SwinIR: Open Source VFX Matting
- Apple Depth Pro 2: Open Source Metric Depth for VFX
- Explore cloud tools on the AI image generator 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)



