BEN3 Removes Backgrounds From Images and Video With One Model
BEN3 is Prama's open background removal model: DINOv3 encoder, RGBA cutouts plus alpha masks, transparent video export, MIT weights, and a same-day ComfyUI node.
BEN3 outputs an RGBA foreground plus an 8-bit alpha mask, so the cutout drops onto any background without extra work. The same checkpoint handles single images, image batches and video frames. For video it writes either a transparent VP9 WebM with the original audio or a flat-color MP4.
Cutouts from the official model card: full-size foregrounds and soft edges on hair and fur.
| At a glance | |
|---|---|
| Weights | PramaLLC/BEN3, 464 MB ben3.pth |
| License | MIT |
| Code | PramaLLC/BEN3 |
| Paper | MHFNet, arXiv 2611.38399 |
| Demo | HF Space, backgrounderase.com |
| ComfyUI | Community node only (ComfyUI-BEN3) |
What you get
A DINOv3 ViT-B/16 encoder feeds a DPT-style decoder that produces three candidate masks; a small score head picks the best one at 1024 × 1024 by default. That is the whole open release.
The second stage that refines edges, the multi-hypothesis fusion network from the paper, is not in the public weights. It stays in the paid model behind backgrounderase.com and the API, so cutouts from the open checkpoint are a notch below the demos on that site, mostly on fine strands.
In ComfyUI
A community node appeared the day after release: ComfyUI-BEN3 adds two nodes, BEN3 Model Loader and BEN3 Remove Background.
cd ComfyUI/custom_nodes
git clone https://github.com/yebisu0529-ship-it/ComfyUI-BEN3
pip install -r requirements.txtIt needs transformers>=4.56 for the DINOv3 classes, and expects weights in ComfyUI/models/background_removal/ (it can also download them from Hugging Face).
The remove node takes a batch, so video frames go in as one IMAGE input. Background can be transparent, black, white, green or a custom hex; invert_mask, batch_size (1 to 64) and image_size (256 to 2048) cover the rest. It is a day-old node, so treat it as a preview.
Straight RGBA cutouts and masks rendered through the community node, over a checkerboard.
Generated image in, transparent PNG out. Useful for compositing characters onto new plates.
Availability
Weights are MIT-licensed on Hugging Face (464 MB, no gated access), inference code ships in the GitHub repo, and the HF Space runs a hosted demo. Transparent WebM export needs ffmpeg and ffprobe on the machine.
Comments
Sign in with GitHub to join the discussion.