Instructions to use netradrishti/u2net-saliency with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use netradrishti/u2net-saliency with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="netradrishti/u2net-saliency", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("netradrishti/u2net-saliency", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download u2net.code-workspace from netradrishti/u2net-saliency: direct link, hf CLI and curl.
- Browser
- Download file 60 Bytes
-
https://huggingface.co/netradrishti/u2net-saliency/resolve/main/u2net.code-workspace
- Command line
-
hf download hf://netradrishti/u2net-saliency/u2net.code-workspace
-
curl -L -o u2net.code-workspace https://huggingface.co/netradrishti/u2net-saliency/resolve/main/u2net.code-workspace
60 Bytes
| { | |
| "folders": [ | |
| { | |
| "path": "." | |
| } | |
| ], | |
| "settings": {} | |
| } |