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');
| license: apache-2.0 | |
| library_name: transformers.js | |
| pipeline_tag: image-segmentation | |
| tags: | |
| - background-removal | |
| - transformers.js | |
| - onnx | |
| # 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. | |