/ Модель

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

Лицензия
Apache 2.0
Библиотека
kraken
Опубликована
3 сен 2026

kraken-ppocrv6-medium

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

Мультиязычная CTC-модель распознаёт рукописный и печатный текст по изображениям строк документов.

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

Бенчмарки

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

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

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

  • allenai/olmOCR-bench

    score · выше — лучше

    Результат

    36,7741

    baseline 100long_tiny_text 74,4344multi_column 57,9186
    Hugging Face Leaderboards

    Публичная таблицаревизия не подтверждена

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

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

PP-OCRv6 medium — базовая мультиязычная модель распознавания текста в строках документов, разработанная Benjamin Kiessling и группой ALMAnaCH в Inria Paris. Репозиторий Hugging Face — неизменённое зеркало выпуска Zenodo; веса обучены с нуля и опубликованы под лицензией Apache-2.0.

Модель содержит около 15,92 млн параметров и использует CTC-распознавание: лёгкую свёрточную основу и нерекуррентный блок моделирования последовательностей. Она принимает изображения строк текста и выдаёт транскрипцию. Обучение охватывает рукописные и печатные исторические, современные и цифровые документы на 44 языках и 10 системах письма. Модель предназначена для распознавания «из коробки» и последующего дообучения; вариант medium ориентирован на более высокую точность по сравнению с tiny и small.

Качество заметно зависит от языка и материала: обучающие данные перекошены в пользу нескольких высокоресурсных языков, а для языков с малым объёмом реальных примеров ошибки выше. Смешанные правила транскрипции могут приводить к непоследовательной передаче сокращений и знаков; для некоторых языков обучение опирается только на синтетические данные, поэтому практическая точность может быть ограничена. Проверочные метрики отражают внутридоменное обобщение, поскольку разбиение не гарантирует разделения документов между обучением и тестированием.

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

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

Ограничения

Точность ниже для языков с малым объёмом реальных обучающих данных; для ряда языков использовались только синтетические примеры. Смешанные правила транскрипции могут вызывать непоследовательную обработку сокращений и знаков, а опубликованные оценки отражают преимущественно внутридоменное обобщение.

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

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

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

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

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

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

Открыть на Hugging Face

PP-OCRv6 (medium) multilingual text recognition base model

Hugging Face Hub mirror

This repository mirrors the canonical Zenodo release by Benjamin Kiessling, ALMAnaCH, Inria Paris. The weights are byte-identical to the Zenodo release and have not been modified by Small Models for GLAM.

Use from the Hugging Face Hub

Install Kraken and the Hugging Face Hub CLI:

pip install "kraken>=7.1.0" huggingface_hub

Download the model and run recognition:

hf download small-models-for-glam/kraken-ppocrv6-medium \
    medium.safetensors \
    --local-dir ./kraken-ppocrv6-medium

kraken -i image.png output.txt \
    segment -bl \
    ocr -m ./kraken-ppocrv6-medium/medium.safetensors

Description

This is the medium variant (~15.92M parameters) of a family of PP-OCRv6 text-line recognition models (tiny, small, medium) for kraken. The models are trained from scratch with baseline

  • bounding polygon data with a very diverse corpus containing historical, contemporary and born-digital document line images, handwritten and machine-printed, covering 44 languages across 10 scripts (Arabic, Armenian, Cyrillic, Ethiopic, Georgian, Greek, Hebrew, Latin, Malayalam, and Syriac).

Architecture

PP-OCRv6 is a conventional CTC-based line recognizer consisting of a lightweight convolutional backbone and a non-recurrent sequence-modelling neck.

The original architecture published as part of PaddlePaddle has been adapted for historical ATR by:

  • increasing line height to 128px
  • uncapping line width/CTC label budget
  • replacing the optimizer with Adam+Muon

Uses

This is a base model that is supposed to produce usable output across a wide range of scripts and materials out of the box while also allowing fine-tuning with ease. It should offer similar accuracy and generalization to VLM-based recognizers without hallucinations and with vastly higher throughput. This medium variant model achieves the highest scores on the test set, tiny and small trade accuracy for inference speed and a smaller memory footprint.

Transcription guidelines, Normalization, and Transformations

No attempt has been made to normalize the source datasets to a single set of transcription guidelines; the corpus mixes conventions, so inconsistent output is to be expected, in particular for Latin-script European manuscripts which mix large datasets such as CATMuS and TRIDIS that have very different approaches to transcription. Text was normalized to Unicode NFD and whitespace was normalized during training and evaluation.

Bias, Risks, and Limitations

The training corpus is heavily skewed towards a handful of high-resource languages (English, French, German, Latin, Dutch, Middle French, ...). Languages with little real training material show markedly higher error rates and will require fine-tuning for practical use. Because transcription conventions are inconsistent across sources, the model may resolve abbreviations or expand glyphs unpredictably.

The synthetic data used for training was created with the pangoline tool which is limited to approximating modern, machine-printed text. For the languages/scripts present only as synthetic data (Classical Armenian, Geʽez) and to a lesser extent those sharing the Latin script (Irish, Latvian, Lithuanian, Romanian, Serbian, Slovenian), real-world accuracy is probably limited.

How to Get Started with the Model

Install kraken (>= 7.1.0), download the model, and run recognition on an input image:

kraken -i image.png output.txt \
    segment -bl \
    ocr -m medium.safetensors

For more information, refer to the documentation.

Training Details

Training Data

The model was trained on publicly available and restricted (private) datasets. Datasets marked as private are part of the training mixture but are not redistributable. A † marks languages that were additionally augmented with synthetic training data (see below).

LanguageScriptDatasets
Ancient Greek †GreekEPARCHOS, HPGTR, HTR_CPgr23, Stavronikita Monastery Greek Handwritten Document Collection No. 114, Stavronikita Monastery Greek Handwritten Document Collection No. 53, Stavronikita Monastery Greek Handwritten Document Collection No. 79, 11 private datasets
Arabic †ArabicAgapet, arabic_ms_data, iskandar, Muharaf: Manuscripts of Handwritten Arabic Dataset, OpenITI Arabic Print Data, RASAM dataset, TariMa
CatalanLatinFONDUE-CA-PRINT-20, htromance-spa, 1 private dataset
Church SlavonicCyrillic3 private datasets
Classical Armenian †Armeniansynthetic only
CorsicanLatinOCR Corse
Czech †Latin2024--medieval-czech-main, 2023--medieval-czech, HTR Winter School 2025 - Medieval Czech - Biblioteka Jagiellonska BJ Rkp 441 IV, Paderov Bible handwriting ground truth, ehri
DanishLatinehri
Dutch †Latin6000 ground truth of VOC and notarial deeds / HTR of VOC, WIC and notarial deeds, ARletta, Dagboek Ernest Clarysse, FONDUE-NE-MSS-17-PR
EnglishLatinFONDUE-EN-PRINT-20, IAM Handwriting Database, jcrs_train, jcrs_val, JosephHookerHTR, OCR-D gt_structure_text, sloanelab, The Revolutionary City / RevCity documentation, Memorials for Jane Lathrop Stanford, ehri, 2 private datasets
Finnish †LatinNewsEye/READ OCR Finnish Newspapers
FrenchLatinAntoine Verard extracts, Copiste-d-un-jour, corpus-HTR-lignes-mixtes, dataset-celestine-doniau-danest, FONDUE-FR-MSS-19, FONDUE-FR-MSS-19-PR, FONDUE-FR-PRINT-20, FONDUE-MLT-ART, genauto-td-htr, HTR Front Justice, La Correspondance Doucet-Rene Jean, Memoire sur St Domingue par H. M. Michel, Moonshines, NewsEye READ AS French Newspapers, NuBIS-OCR, Recensement Valaisan (Valais Time Machine), Tapus Corpus, TIMEUS Corpus, TitresNobiliaires_17_18, CREMMA Manuscrits du 20e, CREMMA Wikipedia, Maxime Kovalewsky - Coutume contemporaine et loi ancienne (1893), HTRomance, Modern Roman languages corpus, Peraire Ground Truth, PARES, 1 private dataset
Georgian †Georgian15 private datasets
GermanLatin2024--medieval-german, 2025--Early-Modern-German, Bullinger Digital Gwalther handwriting ground truth, charlottenburger-amtsschrifttum, Chronicling Germany, dach-gt, DigiTheo Ground Truth, Dresdner Hofdiarium, Fibeln, FONDUE-DE-MSS-16-PR, FONDUE-DE-MSS-18, FONDUE-DE-MSS-19-PR, FONDUE-DE-MSS-20-PR, FONDUE-MLT-ART, FONDUE-MLT-PRINT-TEST, FoNDUE_Kunsthistorisches-UZH_Archivdatenbank, Ground truth for Neue Zurcher Zeitung black letter, Hakenkreuzbanner, inzigkofen, Klosterneuburg, Stiftsbibl., Cod. 48, koenigsfelden, mkn-kurrent-gt, NewsEye / READ OCR Austrian Newspapers, nuremberg_letterbooks, OCR-D gt_structure_text, reichsanzeiger-gt, Training Data Incunabula Reichenau, Weisthuemer, gt-fraktur, german_kurrent_handwritten_text_lines, Ground Truth (Tagebücher Edwin Hennig), ehri, Fanny loves Wilhelm, Frauen im Fokus, Graphemic Early New German, 1 private dataset
German (shorthand)Latin1 private dataset
Geʽez †Ethiopicsynthetic only
HebrewHebrew2025-hebrew, 2 private datasets
HungarianLatinehri
Irish †Latinsynthetic only
ItalianLatinDiario del Soldato Bruno Celestino, EpiSearch HTR, FONDUE-IT-PRINT-20, FONDUE-IT-PRINT-20-PR, HTRogène Medieval Italian Manuscripts, HTRomance, Medieval Italian corpus of ground-truth for Handwritten Text Recognition, leopardi, LiDi1.0-project, LAM, 1 private dataset
LatinLatin2025--late-medieval-latin-main, burchards-dekret-digital, Caroline Minuscule ground truth, Carolingian Latin Group HTR Wien Winter School 2025, CREMMA Medii Aevi, DISTINGUO Latin ground truth, Eutyches, FONDUE-LA-MSS-16-PR, FONDUE-LA-MSS-17-PR, FONDUE-LA-MSS-MA, FONDUE-LA-PRINT-16, HTR Winter School 2023/2024 - Late Medieval Latin, ONB 3891, HTR Winter School 2024/2025 - Late Medieval Latin, ONB 4135; ONB 4680, HTRogène Medieval Latin Manuscripts, HTRomance, Medieval Latin corpus of ground-truth for Handwritten Text Recognition, notarial_charter, nubis, OCR-D gt_structure_text, Paris Bible Project, Training Data Incunabula Reichenau, Wien ONB Cod 2160 ground truth
Latvian †Latinsynthetic only
Lithuanian †Latinsynthetic only
MalayalamMalayalamGround Truth data for printed Malayalam
Middle DutchLatindata
Middle FrenchLatinCremma Medieval, De la généalogie des dieux, Données imprimés du 16e siècle, Données HTR incunables du 15e siècle, Données HTR manuscrits du 15e siècle, Données imprimés du 18e siècle, Données imprimés gothiques du 16e siècle, Fabliaux, FONDUE-FR-AAEB-16, FONDUE-FR-AAEB-17, FONDUE-FR-MSS-18, FONDUE-FR-PRINT-16, FONDUE-FR-PRINT-17, HTR-SETAF-Jean-Michel, HTR-SETAF-LesFaictzJCH, HTR-SETAF-Pierre-de-Vingle, HTRogene French, HTRomance, Medieval French corpus of ground-truth for Handwritten Text Recognition, Imprimés 17e siècle, Liber, OCR17plus, TNAH-2021-DecameronFR, transcription-chastel
Multilingual (mixed)LatinTraining Data Incunabula Reichenau, TranscriboQuest25_MedVernacReligio
NorwegianLatinNorHand v3 / Dataset for Handwritten Text Recognition in Norwegian
OccitanLatinHTRogène Medieval Occitan Manuscripts, 1 private dataset
Ottoman TurkishArabicmehmed_ibn_mehmed_uskubi_cukrikcizade_altiparmak_risale, OpenITI Arabic-script OCR Catalyst Project print/typeface data
Persian †Arabichafiz_divan, OpenITI Arabic-script OCR Catalyst Project print/typeface data, sadi_gulistan
PicardLatin1 private dataset
Polish †Latinehri
PortugueseLatiniForal-Dataset, Portuguese Handwriting 16th-19th c.
Romanian †Latinsynthetic only
Russian †Cyrillic2 private datasets
Serbian (Cyrillic) †Cyrillicsynthetic only
SlovakLatinSlovensky Supermodel P&T1, ehri
Slovenian †Latinsynthetic only
SpanishLatinFoNDUE Spanish chapbooks 19th c. Dataset, FONDUE-ES-MSS-19-PR, FONDUE-ES-PRINT-19, HTR - Araucania manuscript XIX, HTRogène Medieval Spanish Manuscripts, HTRomance, Medieval Spain corpus of ground-truth for Handwritten Text Recognition, ohg, 3 private datasets
SwedishLatinFinnish Court Records-sub500, kat57 Swedish ground truth dataset, NewsEye / READ OCR training dataset from Swedish Newspapers, riskarchiv
Syriac †Syriaczenodo.18157525, winter_school_vienna, 2 private datasets
UkrainianCyrillic1 private dataset
UrduArabicOpenITI Arabic-script OCR Catalyst Project print/typeface data
YiddishHebrew7 private datasets

Synthetic Training Data

Synthetic line images were generated as additional training material for 18 languages: Ancient Greek, Arabic, Classical Armenian, Czech, Dutch, Finnish, Georgian, Geʽez, Irish, Latvian, Lithuanian, Persian, Polish, Romanian, Russian, Serbian, Slovenian, Syriac. Of these, eight are present only as synthetic data: Classical Armenian, Geʽez, Irish, Latvian, Lithuanian, Romanian, Serbian (Cyrillic), Slovenian.

Training Procedure and Hyperparameters

The model was trained with kraken (feature/ppocrv6_rec branch).

Hardware3 × NVIDIA H100
Precisionbf16-mixed
OptimizerAdamW + Muon (momentum 0.95, weight decay 0.01)
Learning rate1.05e-3 (cosine schedule, 3000 step warmup, min 1e-5)
Batch size96
Gradient clipping1.0
Epochs12
NormalizationNFD + whitespace
Augmentationenabled

Evaluation

Testing Data

Metrics are computed on a held-out test set for each language. The test split was obtained by random 5% split with an upper limit of 100 document pages per language. No attempt has been made to split in a manner that separates documents between train and test. The scores below are therefore best read as in-domain generalization.

Evaluations with purely synthetic data are marked with ‡. CER and WER are the character- and word-level error rates, computed with torchmetrics using greedy CTC decoding and the NFD + whitespace normalization (equivalent to ketos test -u NFD -n).

Metrics

LanguageLinesCER (%)WER (%)
Ancient Greek4517.2144.03
Arabic1,9269.3838.90
Catalan1282.1011.84
Church Slavonic6,5997.5333.66
Classical Armenian ‡3,5800.060.35
Corsican500.583.14
Czech9227.3837.14
Danish250.484.46
Dutch4,3846.8627.85
English2,0055.9020.35
Finnish7,9070.633.97
French5,9677.5614.63
Georgian39412.7551.15
German3,0071.627.20
German (shorthand)83017.4647.69
Geʽez ‡2,9920.110.46
Hebrew3,4265.0614.21
Hungarian382.4016.67
Irish ‡2,8240.140.68
Italian2,6112.8910.90
Latin5,7486.4523.91
Latvian ‡2,3970.291.56
Lithuanian ‡2,6150.482.45
Malayalam5926.1884.96
Middle Dutch3,0146.7725.42
Middle French3,9703.4115.46
Multilingual (mixed)2411.005.42
Norwegian2,3355.2219.27
Ottoman Turkish4515.9227.19
Persian9904.6620.46
Polish2,7660.422.44
Portuguese2,76310.0638.45
Romanian ‡2,4120.381.85
Russian3,05312.3437.21
Serbian (Cyrillic) ‡2,7890.040.21
Slovak1,5502.6210.70
Slovenian ‡2,7411.343.02
Spanish5,4654.4917.61
Swedish3,5553.5616.61
Syriac1,8014.8021.72
Ukrainian1,2535.2721.96
Urdu1,6563.7716.77
Yiddish4,3204.4916.24
Aggregate (micro-average)108,0103.9114.98
Aggregate (macro-average)4.9319.07

Full-page olmOCR-bench (community evaluation)

On 9 September 2026, a community evaluation combined this recognizer with Kraken's bundled BLLA segmenter on all 1,403 pages / 8,413 tests in olmOCR-bench. Pages were rendered at 300 DPI and processed through Kraken's Python API on Hugging Face Jobs. Output was raw newline-joined text, without table reconstruction, LaTeX generation or header suppression.

TaskScore (%)
Overall36.8
Long / tiny text74.4
Multiple columns57.9
Headers / footers37.5
Old scans24.1
Tables0.2
Old scans: math0.0
ArXiv math0.0
Automatic baseline100.0

The official overall score has a 95% bootstrap confidence interval of 35.9–37.7%. These are full-pipeline test pass rates, including segmentation, reading order and output format; they are separate from the line-recognition CER/WER evaluation above. The table score includes two passing baseline checks; no table-structure tests passed. Baseline checks do not measure transcription accuracy.

Reproduction scripts · Pinned run report and configuration · Public results and provenance.

License

Released under the Apache-2.0 license.

Acknowledgements

Training of this model was funded by the European Union under Grant Agreement No.~101132163 (ATRIUM) and No.~101071829 (MiDRASH). Views and opinions expressed are those of the authors only and do not necessarily reflect those of the European Union.

This project also received funding from the BPI Scribe project.

Citation

If you use this model, please cite kraken and if possible credit the dataset providers linked in the front matter and the table above.

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

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

GPU в ailist

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

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

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

Ревизия весов
f7fd70f

0 моделей