Image Segmentation
Transformers
PyTorch
ONNX
Safetensors
SegformerForSemanticSegmentation
remove background
background
background-removal
Pytorch
vision
legal liability
custom_code
Instructions to use algonia/rembg_clone with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use algonia/rembg_clone with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="algonia/rembg_clone", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForImageSegmentation model = AutoModelForImageSegmentation.from_pretrained("algonia/rembg_clone", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download example_input.jpg from algonia/rembg_clone: direct link, hf CLI and curl.
- Browser
- Download file 327 kB
-
https://huggingface.co/algonia/rembg_clone/resolve/main/example_input.jpg
- Command line
-
hf download hf://algonia/rembg_clone/example_input.jpg
-
curl -L -o example_input.jpg https://huggingface.co/algonia/rembg_clone/resolve/main/example_input.jpg
327 kB
