Instructions to use tobiasc/segformer-b3-finetuned-segments-sidewalk with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tobiasc/segformer-b3-finetuned-segments-sidewalk with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="tobiasc/segformer-b3-finetuned-segments-sidewalk")# Load model directly from transformers import AutoImageProcessor, SegformerForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("tobiasc/segformer-b3-finetuned-segments-sidewalk") model = SegformerForSemanticSegmentation.from_pretrained("tobiasc/segformer-b3-finetuned-segments-sidewalk", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from tobiasc/segformer-b3-finetuned-segments-sidewalk: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/tobiasc/segformer-b3-finetuned-segments-sidewalk/resolve/2e01d6fbf790a1e28f7ef4ebd0d138751b69b9d2/preprocessor_config.json
- Command line
-
hf download hf://tobiasc/segformer-b3-finetuned-segments-sidewalk@2e01d6fbf790a1e28f7ef4ebd0d138751b69b9d2/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/tobiasc/segformer-b3-finetuned-segments-sidewalk/resolve/2e01d6fbf790a1e28f7ef4ebd0d138751b69b9d2/preprocessor_config.json
271 Bytes
| { | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "SegformerFeatureExtractor", | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "reduce_labels": true, | |
| "resample": 2, | |
| "size": 512 | |
| } | |