Slop TVNewsLatest
Explainers

BEN3 removes video backgrounds and keeps the audio

Prama LLC's open model turns a clip into a transparent WebM in one call, but the benchmark score it is known for comes from a stage the download leaves out.

Illustration: BEN3 removes video backgrounds and keeps the audio
Illustration: SLOP TV News. Logos are trademarks of their owners.

Key takeaways

  • BEN3, Prama LLC's open background-removal model, published on December 1, 2026, removes backgrounds from stills and video and writes a transparent VP9 WebM with the original audio muxed back in.
  • The 465 MB ben3.pth checkpoint pairs a DINOv3 ViT-B/16 encoder with a DPT-style decoder and produces three candidate masks, from which a learned score head picks one at a default 1024x1024.
  • The 0.9054 weighted F-measure in the MHFNet paper belongs to a fusion stage the README says "is not included in the public release"; the open download is only the multi-hypothesis generator.
  • Prama declares the release MIT "subject to applicable third-party licensing terms," but the GitHub repository still ships no LICENSE file and the weights carry Meta's DINOv3 encoder under a separate DINOv3 License.

BEN3 (Background Erase Network) removes the background from a video clip and keeps the audio, in one call, and Prama LLC published it as a free download on December 1, 2026. The checkpoint sits on Hugging Face and GitHub, weighs 465 MB, and handles stills and video with the same weights. For a creator who composites AI-generated people and objects into live-action plates, that turns a manual step into a batch job.

The complicated part is the number everyone will quote for BEN3. Its headline score, a weighted F-measure of 0.9054 on the DIS-TE benchmark, belongs to a stage the open download does not contain.

What BEN3 is

BEN3 comes from Prama LLC, the company behind the BackgroundErase API, and follows its earlier BEN and BEN2 background removers. It is built on multi-hypothesis segmentation and a DINOv3 visual encoder, and the repository README describes it as designed for high-quality foreground segmentation, fine-detail preservation, and efficient image and video processing.

The open model is the multi-hypothesis generator. RGB goes in, and a foreground RGBA image plus an 8-bit alpha mask come out, at a default inference size of 1024x1024. The encoder is a DINOv3 ViT-B/16, the decoder is DPT-style multi-scale feature fusion, and the model was trained on a proprietary dataset of roughly 38,000 images that Prama did not release.

Prama sells a second, fuller version. The "full commercial model" adds a proprietary multi-hypothesis fusion network for boundary refinement and fine detail, and it is available only through the web demo, the API, on-device licensing or enterprise access. The README is direct about the split: "The fusion network is not included in the public release."

What transparent video means for a creator

A normal video frame is RGB, with red, green and blue values for every pixel. An alpha channel adds a fourth value per pixel, from 0 to 255, that says how much of that pixel to keep. A cutout with a real alpha channel drops onto any background, because the transparency travels inside the file rather than being inferred later by whoever edits it.

That is the difference between a key and a guess. A green screen forces a fixed color onto the set, and the editor then has to pull it back out and clean up the spill it leaves on hair, glass and motion blur. A transparent clip arrives already separated. For AI-video work, where a generator produces a person or an object that then has to sit inside a photographed room, the alpha channel is the whole handoff between the two tools.

BEN3 writes that alpha into a file. For video it can export a transparent VP9 WebM with the original audio muxed back in, or a plain MP4 composited onto a solid color the caller picks.

The three-mask idea, in plain language

Most segmentation models output a single mask and commit to it. BEN3 instead produces three candidate masks for each frame, and a small learned quality head scores them and keeps the highest. The reasoning is that one image can be read several ways at the edges, and the model should weigh the alternatives instead of guessing once.

The idea traces to multi-hypothesis segmentation, which Prama credits to the S3OD paper in its acknowledgements. In practice the three candidates often agree. JP Caparas, writing a hands-on test for Sulat, ran five photos on a CPU and found the three masks overlapped by 99% on four of them; the bicycle with its spokes split them the most, at 93% to 97%.

How to run it

The package installs from the repository, and the model loads from Hugging Face:

pip install git+https://github.com/PramaLLC/BEN3.git
from PIL import Image
from ben3 import BEN3

model = BEN3.from_pretrained("PramaLLC/BEN3", device="cuda")
foreground, mask = model.inference(Image.open("input.jpg"))
foreground.save("foreground.png")

Video is one call. For a transparent key with sound:

model.segment_video("input.mp4", output_path="foreground.webm", batch=8, webm=True, add_audio=True)

For a flat color instead of transparency, pass rgb_value=(255, 255, 255). The README notes that ffmpeg and ffprobe must be installed for the transparent WebM output and the audio muxing, so the install is not only Python.

Two setup details are worth knowing before you fight an error. Caparas found that a plain pip install pulled in the newest transformers release, 5.25.1, and the checkpoint failed to load with missing keys, because the model expected weights named encoder.model.layer while the file holds encoder.layer. The Pinokio launcher, built by the developer Cocktail Peanut, pins transformers 4.57.6 and a specific BEN3 commit, and with those two pins the model loaded in about a second and a half. A community node for ComfyUI, ComfyUI-BEN3, appeared the day after release and adds two nodes, a model loader and a remove-background node.

Where the 0.9054 comes from, and what it is not

The benchmark number sits in a companion paper, MHFNet: Multi-Hypothesis Fusion Network for Dichotomous Image Segmentation, by Maxwell Meyer and Jack Spruyt of Prama LLC. It was submitted to arXiv on November 28, three days before the model went up. On the 2,000-image DIS-TE benchmark, the paper reports, the fusion framework lifts weighted F-measure from 0.8915 to 0.9054 and cuts mean absolute error from 0.0277 to 0.0255.

That stage is a second network. It takes the three masks, resizes them from 2048x2048 down to 1024x1024, concatenates them with the RGB image, and refines the result with a Swin Transformer and a coarse-to-fine decoder. It is not the generator that ships.

The README says so on the line under the numbers: "These results correspond to the MHFNet research framework, not the standalone BEN3 generator released in this repository." The same table shows where the open generator's family sits: the retrained S3OD generator scores 0.892 weighted F-measure and BiRefNet, the established open option, scores 0.858. The model card publishes no benchmark figure of its own for the generator, a gap Caparas also flags. So the honest reading of a BEN3 cutout is the open generator's quality, which the demos on backgrounderase.com do not represent, since those come from the paid stage.

The license is MIT on the label, with a Meta encoder underneath

Prama's own statements now carry the MIT label. The README's License section reads: "The BEN3 implementation and publicly released hypothesis generator are released under the MIT License, subject to applicable third-party licensing terms." The Hugging Face model card tags the repository MIT.

The repository itself still ships no LICENSE file. The root listing is README.md, assets, examples, pyproject.toml, requirements files, src and tests, with no LICENSE, and GitHub's API reports the repository's license as null. Traictory, which reported on the release on December 3, also said the README never used the word MIT; the README I read now carries a License section that does. What has not changed since the release is the absence of a standalone license file.

The third-party terms are the other half. The checkpoint carries Meta's DINOv3 encoder, and Meta's DINOv3 License is narrower than MIT. It bars uses related to military or warfare purposes, nuclear industries or applications, espionage, and the development or use of guns or illegal weapons, and it requires anyone who redistributes the materials to pass the agreement along and to display "Built with DINOv3." The ComfyUI-BEN3 node handles this by bundling the DINOv3 license text alongside its own MIT license and stating that the weights' encoder parameters are governed by it.

What it means for a creator

If your pipeline generates a subject and needs it over a plate, BEN3 offers a key without a green screen, and the alpha channel it writes is the part that saves time. The coarse cut is the easy half. Fine strands and thin edges are where the missing fusion stage would show, and Caparas could not compare the open generator with the paid model because he did not run it. Speed is a separate question from quality: on his four-core CPU with no GPU, each 1280-pixel photo took about eight seconds and a two-second 640x426 clip took 342 seconds, roughly seven seconds a frame. That is a CPU figure for a synthetic clip, not a GPU number and not a quality test, and Cocktail Peanut's launcher puts the floor at 4GB of VRAM, which Caparas could not confirm without a GPU.

For an open component you plan to ship inside a product, the license chain is the nearer question. MIT on the generator is the permissive half; the DINOv3 encoder underneath carries its own restrictions, and the repository still has no LICENSE file to point a lawyer at.

BEN3 is free to download. The code and install instructions are at github.com/PramaLLC/BEN3, and the 465 MB checkpoint loads from huggingface.co/PramaLLC/BEN3.

Sources

  1. github.com - repository, README, open-model spec, license statement, video inference code
  2. huggingface.co - model card, MIT tag, 465 MB ben3.pth checkpoint
  3. arxiv.org - MHFNet paper, 0.8915 to 0.9054 benchmark numbers
  4. news.sulat.com - independent CPU test, three-mask overlap, Pinokio launcher pins
  5. comfyui-wiki.com - ComfyUI community node, spec summary
  6. traictory.com - report of no LICENSE file and the r/LocalLLaMA thread
  7. github.com - community node, DINOv3 license handling
  8. ai.meta.com - DINOv3 License terms for the encoder
  9. backgrounderase.com - commercial API pricing