Downloads · 30 days
14
33% of all-time downloads
nomikos-project/greek-htr-calamari
greek-htr-calamari is a image-to-text model from nomikos-project. Use it when you need a caption or text from an image. It is set up for calamari.
Handwritten text recognition checkpoint for Byzantine Greek manuscript line crops. This is the finetuned stable checkpoint published by nomikos-project.
Downloads · 30 days
14
33% of all-time downloads
All-time downloads
42
Public
Repo size
30.9 MB
Likes
0
Public
Click a slice to open those files.
.onnx10.3 MB · 50%
From the Hugging Face model README
Handwritten text recognition checkpoint for Byzantine Greek manuscript line crops. This is the finetuned stable checkpoint published by nomikos-project.
| Field | Value |
|---|---|
| registry model id | greek-calamari-v1 |
| registry tag | stable |
| script | greek |
| architecture | calamari |
| model version | v1 |
| task | transcribe |
| weights source | hf://nomikos-project/greek-htr-calamari@stable |
The Hub file is best.pt (calamari-pytorch-v1): CNN + 2 bidirectional LSTMs, line height 48, CTC charset size 259. Some training YAML files originally said lstm_layers: 3; that setting was not applied, and the saved weights are 2 BiLSTMs.
Out of scope: full-page OCR, other scripts, or modern typeset Greek.
Resolve through the inference registry:
weights_source: hf://nomikos-project/greek-htr-calamari@stable
Prefetch:
PYTHONPATH=. python scripts/hf/fetch_model.py greek-calamari-v1 --registry-tag stable
Or load best.pt with this repo’s predictor after downloading the file:
from huggingface_hub import hf_hub_download
from src.inference.calamari import CalamariPredictor
path = hf_hub_download("nomikos-project/greek-htr-calamari", "best.pt")
CalamariPredictor([path]).predict_files(["line.png"], output_dir="preds")
Two-stage CTC training on cleaned Greek GT (seed 1111, batch 32, 5 augmented copies + 1 original):
0.001 on data/processed/greek/pretraining (18,239 train / 2,298 val / 2,274 test lines). W&B: zy1praog.0.0001 from that pretrain on data/processed/greek/finetuning (164 / 19 / 21 lines). W&B: c7m8jnqe.best.pt is selected on validation CER, not test.
Scored from this Hub best.pt with python -m src.evaluate.calamari on data/processed/greek/finetuning.
| Metric | Val (19 lines) | Test (21 lines) |
|---|---|---|
| CER | 0.156 | 0.226 |
| WER | 0.648 | 0.675 |
| Exact match | 0.000 | 0.000 |
| SROIE F1 | 0.415 | 0.390 |
best.pt is selected on val CER (0.156). W&B eval/* during training is that same val split, not test. The test pack is very small, so test CER is noisier and higher.