Instructions to use martintomov/InsectSAM with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use martintomov/InsectSAM with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="martintomov/InsectSAM")# Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("martintomov/InsectSAM") model = AutoModelForMaskGeneration.from_pretrained("martintomov/InsectSAM") - Notebooks
- Google Colab
- Kaggle
path update
Browse files
README.md
CHANGED
|
@@ -38,8 +38,8 @@ Built on the `segment-anything` architecture, InsectSAM is fine-tuned on an inse
|
|
| 38 |
```python
|
| 39 |
from transformers import AutoProcessor, AutoModelForMaskGeneration
|
| 40 |
|
| 41 |
-
processor = AutoProcessor.from_pretrained("
|
| 42 |
-
model = AutoModelForMaskGeneration.from_pretrained("
|
| 43 |
```
|
| 44 |
|
| 45 |
### Notebooks
|
|
|
|
| 38 |
```python
|
| 39 |
from transformers import AutoProcessor, AutoModelForMaskGeneration
|
| 40 |
|
| 41 |
+
processor = AutoProcessor.from_pretrained("martintomov/InsectSAM")
|
| 42 |
+
model = AutoModelForMaskGeneration.from_pretrained("martintomov/InsectSAM")
|
| 43 |
```
|
| 44 |
|
| 45 |
### Notebooks
|