How to use from the
Use from the
Transformers.js library
// npm i @huggingface/transformers
import { pipeline } from '@huggingface/transformers';

// Allocate pipeline
const pipe = await pipeline('image-segmentation', 'kittypdf/BEN2-transformersjs');

BEN2 Transformers.js

Transformers.js-compatible mirror of onnx-community/BEN2-ONNX for browser-side background removal.

Contents

  • config.json
  • preprocessor_config.json
  • onnx/model_fp16.onnx

Source

Original model: https://huggingface.co/onnx-community/BEN2-ONNX

Check the original repository for license, citation, intended use, and limitations.

Downloads last month
45
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support