Image Segmentation
Transformers
PyTorch
Safetensors
segformer
Generated from Trainer
document-image-binarization
Instructions to use DiTo97/binarization-segformer-b3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DiTo97/binarization-segformer-b3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="DiTo97/binarization-segformer-b3")# Load model directly from transformers import AutoImageProcessor, SegformerForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("DiTo97/binarization-segformer-b3") model = SegformerForSemanticSegmentation.from_pretrained("DiTo97/binarization-segformer-b3") - Notebooks
- Google Colab
- Kaggle
Upload processor
Browse files- preprocessor_config.json +2 -2
preprocessor_config.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
| 18 |
"resample": 2,
|
| 19 |
"rescale_factor": 0.00392156862745098,
|
| 20 |
"size": {
|
| 21 |
-
"height":
|
| 22 |
-
"width":
|
| 23 |
}
|
| 24 |
}
|
|
|
|
| 18 |
"resample": 2,
|
| 19 |
"rescale_factor": 0.00392156862745098,
|
| 20 |
"size": {
|
| 21 |
+
"height": 640,
|
| 22 |
+
"width": 640
|
| 23 |
}
|
| 24 |
}
|