Saltar al contenido
ModelPublicadoExterno
Descargar

BEN2 ONNX

If you haven't already, you can install the Transformers.js JavaScript library from NPM using: npm i @huggingface/transformers

TipoOtherModelo basePramaLLC/BEN2VersiónRevision c552aa8Bcalidad

Fuente del modelo

Tipo
Other
Tamaño del archivo
209 MB
Modelo base
PramaLLC/BEN2
Versión
vRevision c552aa8
Actualizado
10 oct 2026
Descargas
6,1 mil
Fuente
Hugging Face

Descripción de la fuente

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.
InputOutput
inputoutput

Fuentes

1 fuente
Hugging FacePrincipalVersión c552aa82688edce09f0ac9d2e31ad53d9d629010
huggingface.co/onnx-community/BEN2-ONNX/tree/c552aa82688edce09f0ac9d2e31ad53d9d629010

Verificado 12 sept

Artefactos del modelo

1 artefacto

onnx/model_fp16.onnx

onnx · 209 MB · SHA-256 dfdc25f421f3…edf1 · Hugging Face

Descargar

Extractos de fuentes

3 extractos

--- license: mit base_model: - PramaLLC/BEN2 pipeline_tag: image-segmentation library_name: transformers.js tags: - background-removal --- ## Usage (Transformers.js) If you haven't already, you can install the [Transformers.js](https://huggingface.co/docs/transformers.js) JavaScript library from [NPM](https://www.npmjs.com/package/@huggingface/transformers) using: ```bash npm i @huggingface/transformers ``` **Example**: Remove background of an image ```js 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](https://github.com/user-attachments/assets/e39c66b3-a3cd-4fcb-846f-899fbe95cbf5) | ![output](https://github.com/user-attachments/assets/90d4507e-74e0-4a75-9fc4-2c9d6d3cfaa5) |

Source context: 6125 downloads · 23 likes · Pipeline image-segmentation · Library transformers.js · Repo onnx-community/BEN2-ONNX

Source context: 5425 downloads · 22 likes · Pipeline image-segmentation · Library transformers.js · Repo onnx-community/BEN2-ONNX