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")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, SegformerForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("DiTo97/binarization-segformer-b3") model = SegformerForSemanticSegmentation.from_pretrained("DiTo97/binarization-segformer-b3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Updated README with DIBCO metrics
Browse files12345678910111 unmodified line131415161718192021222324252627282921 unmodified lines5152535455565747 unmodified lines105106107108---license: othertags:- document-image-binarizationimage-segmentation- generated_from_trainermodel-index:- name: binarization-segformer-b3results: []---<!-- This model card has been generated automatically according to the information the Trainer had access to. You1 unmodified line# binarization-segformer-b3This model is a fine-tuned version of [nvidia/segformer-b3-finetuned-cityscapes-1024-1024](https://huggingface.co/nvidia/segformer-b3-finetuned-cityscapes-1024-1024) on the None dataset.It achieves the following results on the evaluation set:- Loss: 0.1017- Fmeasure: 0.9776- Pfmeasure: 0.9531- Psnr: 14.5040- Drd: 5.3749## Model descriptionMore information needed## Intended uses & limitations21 unmodified lines### Training results| Training Loss | Epoch | Step | Validation Loss | Fmeasure | Pfmeasure | Psnr | Drd ||:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:-------:|:--------:|| 0.6667 | 1.03 | 10 | 0.6683 | 0.7127 | 0.6831 | 4.8248 | 107.2894 || 0.6371 | 2.05 | 20 | 0.6390 | 0.8173 | 0.7360 | 6.1079 | 69.7770 |47 unmodified lines- Transformers 4.27.4- Pytorch 2.0.0+cu118- Datasets 2.11.0- Tokenizers 0.13.3123456789101112131 unmodified line1516171819202122232425262728293031323321 unmodified lines5556575859606147 unmodified lines109110111112---license: openrailtags:- document-image-binarization- image-segmentation- generated_from_trainermodel-index:- name: binarization-segformer-b3results: []pipeline_tag: image-to-image---<!-- This model card has been generated automatically according to the information the Trainer had access to. You1 unmodified line# binarization-segformer-b3This model is a fine-tuned version of [nvidia/segformer-b3-finetuned-cityscapes-1024-1024](https://huggingface.co/nvidia/segformer-b3-finetuned-cityscapes-1024-1024) on the same ensemble of datasets as the [SauvolaNet work](https://arxiv.org/pdf/2105.05521.pdf). The ensemble is publicly available in the official [SauvolaNet repository](https://github.com/Leedeng/SauvolaNet#datasets).It achieves the following results on the evaluation set on DIBCO metrics:- loss: 0.1017- F-measure: 0.9776- probabilistic F-measure: 0.9531- PSNR: 14.5040- DRD: 5.3749For more information on DIBCO metrics, see the [paper](https://ieeexplore.ieee.org/document/8270159) in which they were introduced.## Model descriptionThis model is part of on-going research on pure semantic segmentation models for document image binarization.## Intended uses & limitations21 unmodified lines### Training results| training loss | epoch | step | validation loss | F-measure | probabilistic F-measure | PSNR | DRD ||:-------------:|:-----:|:----:|:---------------:|:--------:|:---------:|:-------:|:--------:|| 0.6667 | 1.03 | 10 | 0.6683 | 0.7127 | 0.6831 | 4.8248 | 107.2894 || 0.6371 | 2.05 | 20 | 0.6390 | 0.8173 | 0.7360 | 6.1079 | 69.7770 |47 unmodified lines- Transformers 4.27.4- Pytorch 2.0.0+cu118- Datasets 2.11.0- Tokenizers 0.13.3
README.md+16-12