Instructions to use RKoops/my-segmentation-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RKoops/my-segmentation-model with Transformers:
# Load model directly from transformers import AutoImageProcessor, SegformerForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("RKoops/my-segmentation-model") model = SegformerForSemanticSegmentation.from_pretrained("RKoops/my-segmentation-model") - Notebooks
- Google Colab
- Kaggle
Upload feature extractor
Browse files- preprocessor_config.json +2 -2
preprocessor_config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"do_normalize": true,
|
| 3 |
-
"do_resize":
|
| 4 |
"feature_extractor_type": "SegformerFeatureExtractor",
|
| 5 |
"image_mean": [
|
| 6 |
0.485,
|
|
@@ -12,7 +12,7 @@
|
|
| 12 |
0.224,
|
| 13 |
0.225
|
| 14 |
],
|
| 15 |
-
"reduce_labels":
|
| 16 |
"resample": 2,
|
| 17 |
"size": 512
|
| 18 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"do_normalize": true,
|
| 3 |
+
"do_resize": false,
|
| 4 |
"feature_extractor_type": "SegformerFeatureExtractor",
|
| 5 |
"image_mean": [
|
| 6 |
0.485,
|
|
|
|
| 12 |
0.224,
|
| 13 |
0.225
|
| 14 |
],
|
| 15 |
+
"reduce_labels": false,
|
| 16 |
"resample": 2,
|
| 17 |
"size": 512
|
| 18 |
}
|