SAVRN
Search Contact SAVRN

Open-weight model · Image segmentation

BEN2

by Prama LLC PramaLLC/BEN2

BEN2 (Background Erase Network) introduces a novel approach to foreground segmentation through its innovative Confidence Guided Matting (CGM) pipeline.

Parameters95M
Context
Weights1.7 GB
Licensemit
AccessOpen weights
Monthly Downloads68.5k

Runs On

What it takes to serve BEN2 (95M parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 0.2 GB 0.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 0.1 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 0.0 GB 0.1 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Prama LLC, published under mit, revision e48a20765fb4.

BEN2: Background Erase Network

Overview

BEN2 (Background Erase Network) introduces a novel approach to foreground segmentation through its innovative Confidence Guided Matting (CGM) pipeline. The architecture employs a refiner network that targets and processes pixels where the base model exhibits lower confidence levels, resulting in more precise and reliable matting results. This model is built on BEN:

BEN2 access

BEN2 was trained on the DIS5k and our 22K proprietary segmentation dataset. Our enhanced model delivers superior performance in hair matting, 4K processing, object segmentation, and edge refinement. Our Base model is open source. To try the full model through our free web demo or integrate BEN2 into your project with our API: -backgrounderase.com

Contact us

  • For access to our commercial model email us at [email protected]
  • Our website: https://backgrounderase.com/
  • Follow us on X: https://x.com/PramaResearch/

Installation

pip install -e "git+https://github.com/PramaLLC/BEN2.git#egg=ben2"

Quick start code

Read the full model card (486 words)

Configuration

Architecture
PramaBEN_Base
Stored precision
float32

Identity and Version

Repository
PramaLLC/BEN2
Publisher
Prama LLC
Task
Image segmentation
Modality
Image
Library
ben2
Parameters
95M parameters
Languages
Not stated by the source
Revision
e48a20765fb421d19dcdb0bf3cc61e802ca5ec8f
First published
2025-01-22
Last updated
2025-12-31

Files and Weights

16 files, 1.8 GB in total. The weights are 3 files totalling 1.7 GB in onnx, pth, safetensors.

Weights3 files · 1.7 GB
Configuration4 files · 55.7 KB
Documentation1 file · 5.1 KB
Other7 files · 19.8 MB
Repository1 file · 2.0 KB
Every file
FileTypeSizeSHA-256
BEN2_Base.onnxWeights222.9 MB 22cea62108ff
BEN2_Base.pthWeights1.1 GB 926144a876bd
model.safetensorsWeights380.6 MB ea8b7907176a
BEN2.pyConfiguration53.5 KB
config.jsonConfiguration124 B
inference.pyConfiguration353 B
onnx_run.pyConfiguration1.7 KB
README.mdDocumentation5.1 KB
BEN2_demo_pictures/grid_example1.pngOther1.5 MB 49df5808df57
BEN2_demo_pictures/grid_example2.pngOther1.8 MB 0899c57bdb59
BEN2_demo_pictures/grid_example3.pngOther8.6 MB f0e2cb53afd4
BEN2_demo_pictures/grid_example6.pngOther2.4 MB 327eca743bee
BEN2_demo_pictures/grid_example7.pngOther5.3 MB 0f758d617b32
BEN2_demo_pictures/model_comparison.pngOther327.5 KB b7b666c9f0b2
requirements.txtOther102 B
.gitattributesRepository2.0 KB

License and Download

License
mit
Access
Open weights, no gate
Download size
1.7 GB
Download from Prama LLC

Released by Prama LLC through its official repository on Hugging Face. Read the license.

Built From

  • Described by arXiv:2501.06230

Memory Requirements

PrecisionWeights in memory
As published1.7 GB
16-bit0.2 GB
8-bit0.1 GB
4-bit0.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About BEN2

How much GPU memory does BEN2 need?

About 0.2 GB at 16-bit and 0.1 GB at 4-bit: the weights (95M parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run BEN2 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use BEN2 commercially?

Yes. BEN2 is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.

Similar Models

Model · Image segmentation

face-parsing

Jonathan Dinu

Semantic segmentation model fine-tuned from nvidia/mit-b5 with CelebAMask-HQ for face parsing. For additional options, see the Transformers Segformer docs. Exhaustive list of labels can be extracted from config.json. Since p5.js uses an animation loop abstraction, we need to take care loading the model and making predictions. While the capabilities of computer vision models are impressive, they can also reinforce or exacerbate social biases. The CelebAMask-HQ dataset used for fine-tuning is large but not necessarily perfectly diverse or representative. Also, they are images of.... just celebrities.

Open weights 85M parameters transformers

Model · Image segmentation

mask2former-swin-base-coco-panoptic

AI at Meta

Mask2Former model trained on COCO panoptic segmentation (base-sized version, Swin backbone). It was introduced in the paper Masked-attention Mask Transformer for Universal Image Segmentation and first released in this repository. Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team. Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, MaskFormer both in terms of performance an efficiency by (i)…

Open weights other 107M parameters transformers

Model · Image segmentation

mask2former-swin-base-ade-semantic

AI at Meta

Mask2Former model trained on ADE20k semantic segmentation (base-sized version, Swin backbone). It was introduced in the paper Masked-attention Mask Transformer for Universal Image Segmentation and first released in this repository. Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team. Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, MaskFormer both in terms of performance an efficiency by (i)…

Open weights other 107M parameters transformers

Model · Image segmentation

mask2former-swin-small-ade-semantic

AI at Meta

Mask2Former model trained on ADE20k semantic segmentation (small-sized version, Swin backbone). It was introduced in the paper Masked-attention Mask Transformer for Universal Image Segmentation and first released in this repository. Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team. Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, MaskFormer both in terms of performance an efficiency by (i)…

Open weights other 69M parameters transformers

Model · Image segmentation

mask2former-swin-small-coco-instance

AI at Meta

Mask2Former model trained on COCO instance segmentation (small-sized version, Swin backbone). It was introduced in the paper Masked-attention Mask Transformer for Universal Image Segmentation and first released in this repository. Disclaimer: The team releasing Mask2Former did not write a model card for this model so this model card has been written by the Hugging Face team. Mask2Former addresses instance, semantic and panoptic segmentation with the same paradigm: by predicting a set of masks and corresponding labels. Hence, all 3 tasks are treated as if they were instance segmentation. Mask2Former outperforms the previous SOTA, MaskFormer both in terms of performance an efficiency by (i)…

Open weights other 69M parameters transformers

Model · Image segmentation

fashn-human-parser

FASHN

A SegFormer-B4 model fine-tuned for human parsing with 18 semantic classes, optimized for fashion and virtual try-on applications. This model segments human images into 18 semantic categories including body parts (face, hair, arms, hands, legs, feet, torso), clothing items (top, dress, skirt, pants, belt, scarf), and accessories (bag, hat, glasses, jewelry). The pipeline automatically manages GPU/CPU and returns per-class masks at the original image resolution. For maximum accuracy, use our Python package which implements the exact preprocessing used during training: The package uses cv2.INTERAREA for resizing (matching training), while the HuggingFace pipeline uses PIL LANCZOS. Labels…

Open weights other 64M parameters transformers