BEN3 Removes Backgrounds From Images and Video With One Model

ComfyUI Wikinews

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.

Prama LLC published BEN3 (Background Erase Network) on December 1. It removes backgrounds from stills and video, returns a real alpha channel, and ships MIT-licensed weights on Hugging Face.

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.

Background removal results from the official model card

Cutouts from the official model card: full-size foregrounds and soft edges on hair and fur.

At a glance
WeightsPramaLLC/BEN3, 464 MB ben3.pth
LicenseMIT
CodePramaLLC/BEN3
PaperMHFNet, arXiv 2611.38399
DemoHF Space, backgrounderase.com
ComfyUICommunity 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.txt

It 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.

ComfyUI cutouts from the community node

Straight RGBA cutouts and masks rendered through the community node, over a checkerboard.

Anime character cutout, generated with Krea 2 and cut out by BEN3

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.

Loading comments…
BEN3 Removes Backgrounds From Images and Video With One Model | ComfyUI Wiki