/ Модель

Характеристики

Опубликована
29 окт 2026

greek-ocr

Описание изображенийИзображение → текст7 профессий

Компактная OCR-модель распознаёт печатные строки на греческом, латинском и кириллическом письме по их изображениям.

0скачиваний за 30 дней0лайковвеса обновлены29 окт 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Greek OCR v0.10 — модель распознавания текста, разработанная автором репозитория fffoivos. Она принимает изображение отдельной строки и преобразует его в текст; для обработки страницы перед ней нужен сегментатор строк, который входит в связанный инструментарий. Модель можно применять для распознавания печатных книг и документов, в том числе в OCR-процессе Docling через плагин инструментария.

В основе — компактная свёрточная архитектура с CTC-головой и 266 выходными классами. Выпущены варианты размером 3,78 млн, 8,39 млн и 14,83 млн параметров; распознаваемые письменности включают современный монотонический и политонический греческий, латиницу, кириллицу, цифры и смешанные строки. Для декодирования используются жадный CTC и нормализация результата в NFC. В README приведены тестовые показатели CER от 0,0060 до 0,0190 в зависимости от варианта и набора данных.

Модель предназначена для печатного текста на изображениях строк, а не для самостоятельного анализа макета целой страницы. Лицензия в предоставленных данных не указана, поэтому условия использования определить нельзя.

Сценарии применения

  • распознавание политонического греческого текста в оцифрованных книгах
  • распознавание современного греческого текста на сканах
  • извлечение текста из изображений отдельных строк
  • распознавание кириллических и латинских вставок в греческих документах
  • подключение распознавания строк в OCR-конвейер Docling

Ограничения

Модель распознаёт отдельные строки и требует сегментатора для разбиения страницы; самостоятельный анализ макета страницы не выполняет. Условия лицензии в доступных данных не приведены.

Для каких профессий подходит7

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Greek OCR (v0.10)

A line-level text recogniser for printed Greek. It reads modern (monotonic) and polytonic Greek and also Latin and Cyrillic text, as well as mixed lines, numbers and page furniture. All of this comes from one codec of 266 classes.

The model takes one cropped text-line image and returns its text. It needs only a line segmenter in front of it to cut the page into lines; no layout model is required. The line segmenter is part of the toolkit. Docling has no line segmenter of its own; it provides page layout. The toolkit's Docling OCR plugin runs the toolkit's line segmenter on each page and then this recogniser on each line.

Three sizes are released, all trained on the same data with the same recipe:

FolderWidthParametersWeights
x1/×13.78 M15 MB
x1.5/×1.58.39 M34 MB
x2/×214.83 M59 MB

Each folder holds model.safetensors, config.json, codec.json and MANIFEST.json (sha256 of each file).

Related artefacts

  • Collection: Greek OCR (models + datasets)
  • Dataset: fffoivos/greek-ocr-lines (v0.5, commit 8f3de247), the exact line images and labels used for training, validation and testing. Config real holds the real lines; config synthetic holds the synthetic training lines, each with its applied degradation ops, font and the generator recipe
  • Code (training, export, Docling plugin): fffoivos/greek-ocr-toolkit

Results

CER is the character error rate as a fraction (0.0100 = 1.00%). Exact = the share of lines read perfectly (NFC). Each released checkpoint is the best of the 8 epoch-end evaluations on seal04_dev; Stage B chose hyperparameters on pooled dev (harvest_dev + seal04_dev). The test sets were reported once and selected nothing.

Test (report only)

Modelharvest_test CER (NFC)harvest_test exactseal04_test CER (NFC)seal04_test exact
×10.006481.6%0.019079.2%
×1.50.006381.9%0.018780.4%
×20.006082.4%0.017581.2%

Dev (used for checkpoint selection)

Modelharvest_dev CER (NFC)harvest_dev exactseal04_dev CER (NFC)seal04_dev exact
×10.010682.2%0.034680.8%
×1.50.010882.3%0.033179.6%
×20.010483.0%0.032478.9%
  • harvest_test: 52,847 lines (harvest_dev: 16,350). These are real book pages from many sources (Internet Archive polytonic 1850s/1900s and Greek 1950–1980, NLG, BSB, Serbian Cyrillic, IEP, University of Ioannina), mostly polytonic.
  • seal04_test: 2,253 lines (seal04_dev: 437). This is a hand-checked panel.
  • The ×2 model is the most accurate. ×1 is within about 0.0004 CER on harvest_test at under half the size. The full per-source, per-script, per-length breakdowns, the confusion tables and the paired bootstrap are in evaluation/REPORT.md; the machine-readable numbers are in evaluation/SUMMARY.json.

Speed (harvest_dev sample, see REPORT.md): on a GH200 GPU in bf16, ×1.5 runs at about 2.9 ms/line with batch 256 (≈350 lines/s). On CPU fp32 it runs at about 230 ms/line with batch 1 and 8 threads. Some CPU batch-32 timings were slower than batch 1, which is an open benchmarking anomaly.

Model details

  • Architecture: compact convolutional line recogniser with a CTC head (arch=compact, head=nfd), 266 output classes, codec v2.1 (sha256 eae613e8eb18fd144314f68ae3b6424fb48dd778a2134fef417b06ac2353c4b6).
  • Input: grayscale line image resized to height 48, normalised with mean 0.5 / std 0.5, right-padded with the line's own background (margin 128).
  • Decoding: greedy CTC. Characters are predicted in NFD (base letter + combining accents/breathings), and output is returned in NFC.
  • Training: 8 epochs on real lines (≈50%) mixed with synthetic lines (≈50%). The selected checkpoint is the end of epoch 8 for all three widths, chosen by strict improvement over the eight epoch-end seal04_dev evaluations.

Usage

With the toolkit installed (greekocr package from the GitHub repo):

from huggingface_hub import snapshot_download
from greekocr.train.export import load_release

path = snapshot_download("fffoivos/greek-ocr", allow_patterns=["x2/*"])
model, codec, config = load_release(f"{path}/x2")   # fp32, eval mode

To use it in Docling, point the toolkit's Docling OCR plugin (greekocr.deploy.docling_plugin) at the release folder; the plugin runs the toolkit's line segmenter and then this model.

Training state

The intermediate per-epoch checkpoints (step-*.pt) for every width are on the training-state branch.

Versions

  • v0.10 (2026-10-29): first public release of ×1, ×1.5 and ×2 (the tenth OCR model generation; see VERSIONS.md in the toolkit). Docling-path parity check: pending (non-blocking). The repo layout and card are being completed by the release builder: predictions, loss curves, training_source/, and the full continuation closure on training-state.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
2a6b019

0 моделей