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/RMBG-1.4-transformersjs');

RMBG-1.4 Transformers.js

Transformers.js-compatible mirror of briaai/RMBG-1.4 for browser-side background removal.

Changes

  • Keeps the original model file layout needed by Transformers.js.
  • Patches config.json model_type to segformer so Transformers.js can resolve the model class.

Contents

  • config.json
  • preprocessor_config.json
  • onnx/model.onnx
  • onnx/model_fp16.onnx
  • onnx/model_quantized.onnx
  • onnx/quantize_config.json

Source

Original model: https://huggingface.co/briaai/RMBG-1.4

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

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