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
| { | |
| "do_normalize": true, | |
| "do_reduce_labels": false, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "SegformerFeatureExtractor", | |
| "image_mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "image_processor_type": "SegformerImageProcessor", | |
| "image_std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 640, | |
| "width": 640 | |
| } | |
| } | |