Instructions to use flaviagiammarino/medsam-vit-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flaviagiammarino/medsam-vit-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="flaviagiammarino/medsam-vit-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("flaviagiammarino/medsam-vit-base") model = AutoModelForMaskGeneration.from_pretrained("flaviagiammarino/medsam-vit-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
7f4cded
1
Parent(s): 08261c6
Upload preprocessor_config.json
Browse files- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
| 20 |
"width": 1024
|
| 21 |
},
|
| 22 |
"processor_class": "SamProcessor",
|
| 23 |
-
"resample":
|
| 24 |
"rescale_factor": 0.00392156862745098,
|
| 25 |
"size": {
|
| 26 |
"longest_edge": 1024
|
|
|
|
| 20 |
"width": 1024
|
| 21 |
},
|
| 22 |
"processor_class": "SamProcessor",
|
| 23 |
+
"resample": 3,
|
| 24 |
"rescale_factor": 0.00392156862745098,
|
| 25 |
"size": {
|
| 26 |
"longest_edge": 1024
|