BEN3 (open model), ONNX export

An unofficial ONNX export of the open PramaLLC/BEN3 background-removal model, made to run in the browser with ONNX Runtime Web (WebGPU or WebAssembly). The weights are unchanged apart from the conversion to half precision. This is the first-stage open model, not the commercial BEN3 with its fusion network.

File Size Notes
onnx/model_fp16.onnx 217 MB fp16 weights, float32 input and output

Usage

  • Input input: float32 [1, 3, 1024, 1024], RGB scaled to 0..1 and then normalised with ImageNet mean [0.485, 0.456, 0.406] and std [0.229, 0.224, 0.225].
  • Output alpha: float32 [1, 1, 1024, 1024], an alpha matte in 0..1. Resize it back to the original image size.

BEN3 predicts three candidate masks and a score for each. Choosing the highest-scoring mask and applying the sigmoid are part of the exported graph.

Against the PyTorch model on the same input, the maximum output difference is below 0.001. The export script is in the removebg repository under scripts/export-ben3.

Licence

BEN3's code and open weights are released by Prama LLC under the MIT License, subject to third-party terms. The model contains a fine-tuned DINOv3 ViT-B/16 encoder from Meta, so this file is distributed under the DINOv3 License; a copy is in LICENSE.md. By using or redistributing this file you agree to that licence, including its restrictions on military, weapons, nuclear and ITAR-controlled uses and its trade-control terms.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for geek-at/BEN3-ONNX

Base model

PramaLLC/BEN3
Quantized
(2)
this model