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');
| { | |
| "_name_or_path": "briaai/RMBG-1.4", | |
| "architectures": [ | |
| "BriaRMBG" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "MyConfig.RMBGConfig", | |
| "AutoModelForImageSegmentation": "briarmbg.BriaRMBG" | |
| }, | |
| "custom_pipelines": { | |
| "image-segmentation": { | |
| "impl": "MyPipe.RMBGPipe", | |
| "pt": [ | |
| "AutoModelForImageSegmentation" | |
| ], | |
| "tf": [], | |
| "type": "image" | |
| } | |
| }, | |
| "in_ch": 3, | |
| "model_type": "segformer", | |
| "out_ch": 1, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.38.0.dev0" | |
| } | |