Downloads · 30 days
371
15% of all-time downloads
dh-unibe/trocr-medieval-escriptmask
trocr-medieval-escriptmask is a image-text-to-text model from dh-unibe. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Handwritten Text Recognition model for Medieval Scripts.
Downloads · 30 days
371
15% of all-time downloads
All-time downloads
2.6K
Public
Parameters
334M
4 GB on disk
Likes
2
Public
Click a slice to open those files.
.bin1.3 GB · 50%
From the Hugging Face model README
# TrOCR Medieval Model with linemasks generated in eScriptorium (https://de.wikipedia.org/wiki/EScriptorium) Handwritten Text Recognition model for Medieval Scripts.
Part of the developments at the Digital Humanities@University of Bern. Developed by Jonas Widmer and Tobias Hodel based on different ground truth (see below).
Base model: microsoft/trocr-base-handwritten
Epochs: 19.05 / 20
Eval CER: 0.0329
This is a combined model of ground truth of different charter and book scripts from a variety of projects and institutions, aiming at building a generic model for Latin scripts of the Middle Ages. It is mainly based on documents from the project CREMMA Manuscrits médiévaux latins, HIMANIS (CNRS), Itinera Nova (Stadsarchief Leuven), and Charters and Records of Königsfelden (Universität Zürich).
Based on the following data: CREMMA Manuscrits médiévaux latins has been produced by Clérice, Thibault and Chagué, Alix and Vlachou Efstathiou, Malamatenia. It is licensed under a CC-BY 4.0 license. URL: https://github.com/HTR-United/CREMMA-Medieval-LAT
HIMANIS is partially published as HIMANIS Guérin produced by Stutzmann, Dominique; Hamel, Sébastien; Kernier, Iseut de; Mühlberger, Günter; Hackl, Günter. Licensed under a CC-BY 4.0 license. DOI: 10.5281/zenodo.5535306
Charters and Records of Königsfelden Abbey and Bailiwick (1308-1662) has been produced by Halter-Pernet, Colette; Teuscher, Simon; Hodel, Tobias; Barwitzki, Lukas; Egloff, Salome; Henggeler, Fabian; Nadig, Michael; Steinmann, Anina; Stettler, Sabine; Prada Ziegler, Ismail. Licensed under a CC-BY 4.0 license. DOI: 10.5281/zenodo.5179361
The model is based on the same data as the following PyLaia model (available on Transkribus): https://readcoop.eu/model/charter-scripts-german-latin-french/
The model has not been extensively tested. Potential biases are still to be identified.
This is a VisionEncoderDecoderModel for line images: it reads one cropped
text line per call, which is also what the CER above was measured on. A whole
page is not an input it has — pass one and it returns a fragment of it.
Segment the page first (kraken, eScriptorium, Transkribus, or any line
segmenter) and pass the crops one at a time. In the DH Bern serving stack the
model is registered level: line and the gateway segments with kraken before
calling it; the reasoning and the measurements behind that rule are in
thodel/serving-atr-inference#165.