Image Segmentation
Transformers
PyTorch
ONNX
Safetensors
Transformers.js
SegformerForSemanticSegmentation
remove background
background
background-removal
Pytorch
vision
legal liability
custom_code
Instructions to use why-do-u-care/a-simple-bg-removal with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use why-do-u-care/a-simple-bg-removal with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="why-do-u-care/a-simple-bg-removal", trust_remote_code=True)# Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("why-do-u-care/a-simple-bg-removal", trust_remote_code=True, dtype="auto") - Transformers.js
How to use why-do-u-care/a-simple-bg-removal with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-segmentation', 'why-do-u-care/a-simple-bg-removal'); - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
253f183 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:59569acdb281ac9fc9f78f9d33b6f9f17f68e25086b74f9025c35bb5f2848967
size 176574018
|