Instructions to use kittypdf/RMBG-1.4-transformersjs with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use kittypdf/RMBG-1.4-transformersjs with Transformers.js:
// 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.jsonmodel_typetosegformerso Transformers.js can resolve the model class.
Contents
config.jsonpreprocessor_config.jsononnx/model.onnxonnx/model_fp16.onnxonnx/model_quantized.onnxonnx/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
- 125