Instructions to use facebook/sam-vit-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use facebook/sam-vit-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="facebook/sam-vit-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("facebook/sam-vit-base") model = AutoModelForMaskGeneration.from_pretrained("facebook/sam-vit-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -103,8 +103,6 @@ for mask in outputs["masks"]:
|
|
| 103 |
plt.axis("off")
|
| 104 |
plt.show()
|
| 105 |
```
|
| 106 |
-
This should give you the following 
|
| 107 |
-
|
| 108 |
|
| 109 |
|
| 110 |
# Citation
|
|
|
|
| 103 |
plt.axis("off")
|
| 104 |
plt.show()
|
| 105 |
```
|
|
|
|
|
|
|
| 106 |
|
| 107 |
|
| 108 |
# Citation
|