ONNX Model Zoo

sapienkit/BEN2-ONNX

By sapienkit · ↓ 4 · ♥ 0 · Updated 2026-02-12

What's in this repo

This page lists the files in sapienkit/BEN2-ONNX, including model_fp16.onnx.

  • 1 ONNX models (.onnx files)
  • 5 files, including 2 .json, 1 .md, 1 .onnx
  • Last updated 2026-02-12

ONNX files

File Size Download
onnx/model_fp16.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

Usage (Transformers.js)

If you haven't already, you can install the Transformers.js JavaScript library from NPM using:

npm i @huggingface/transformers

Example: Remove background of an image

import { pipeline } from '@huggingface/transformers';

const segmenter = await pipeline('background-removal', 'onnx-community/BEN2-ONNX');
const url = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/woman-with-afro_medium.jpg';
const output = await segmenter(url);
output[0].save('mask.png');
// You can also use `output[0].toCanvas()` or `await output[0].toBlob()` if you would like to access the output without saving.
Input Output
input output

Model info

image-segmentation transformers.js
transformers.js onnx ben background-removal image-segmentation base_model:PramaLLC/BEN2 base_model:quantized:PramaLLC/BEN2 license:mit region:us
↓ 4 ♥ 0

Created: 2026-02-12

Updated: 2026-02-12

View on Hugging Face

Files (5)

.gitattributes
README.md
config.json
onnx/model_fp16.onnx ONNX
preprocessor_config.json

Related models