Browse workflows
ComfyUI and workflows

Prama Research's BEN3 background removal arrives in ComfyUI with FP16 safetensors

ComfyUI-BEN3 wraps Prama Research's DINOv3 cutout model into two nodes with auto-downloading FP16 and FP32 safetensors.

From the makerFreeOpen weightsLocalComfyUI
Comparison grid showing original photos of a cat, portrait, and red car beside BEN3 transparent cutouts and alpha masks.
Image: Yebisu / Prama LLC

Prama Research released BEN3 (Background Erase Network, arXiv 2611.38399) for image and video background removal. Community studio Yebisu packaged it as ComfyUI-BEN3 alongside FP32 (~443 MB) and FP16 (~220 MB) safetensors checkpoints on Hugging Face so ComfyUI users can drop it straight into matting workflows without handling raw .pth weights.

Why it mattersA compact ~220 MB open cutout model for clean foreground extraction in ComfyUI image and video graphs.

What is new

BackgroundErase and Prama LLC published the open generator weights for BEN3, short for Background Erase Network, following their MHFNet paper by Maxwell Meyer and Jack Spruyt. Community developer Yebisu then packaged the model as ComfyUI-BEN3 with converted safetensors files on Hugging Face.

The open model pairs a DINOv3 ViT-B/16 visual encoder with a multi-scale DPT decoder. For each frame, it generates three candidate foreground masks and uses an auxiliary score head to select the cleanest prediction.

How it works in ComfyUI

The custom node pack adds a BEN3 Model Loader and a BEN3 Remove Background node that handle both single photos and video frame batches.

  • The loader picks auto, fp16, bf16, or fp32 precision, sets inference size from 256 to 2048 pixels in steps of 16, and downloads weights automatically into ComfyUI's background_removal folder.
  • Remove Background processes 1 to 64 frames per batch, outputs straight 4-channel RGBA cutouts or 3-channel RGB over black, white, green, or a custom hex color, and includes an invert_mask switch.
  • Setting keep_model_loaded to false offloads the weights to system memory and clears GPU memory after each run.

Limits, licence, and availability

Both the node pack and weights are free, requiring ComfyUI 0.21.0 or newer and transformers 4.56.0 or newer. The node code and generator carry an MIT licence, while the weights remain subject to Meta's DINOv3 licence. Prama LLC keeps its second-stage MHFNet fusion network proprietary on backgrounderase.com and its paid API.

More from this issue

All 81 stories
Make videos with these toolsOur workflows turn Blender, Unreal, ComfyUI and AI video into finished Shorts, explainers and reels. Claude sets them up for you.
Browse workflows