/ Модель

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

Лицензия
CC BY 4.0
Библиотека
kraken
Опубликована
29 окт 2026

consilia-baldus-venice1575-kraken-seg

Сегментация изображенийИзображение → mask3 профессии
11скачиваний за 30 дней0лайковвеса обновлены29 окт 2026

Описание модели

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

Модель Kraken выделяет строки и области страниц латинских юридических книг XVI века, особенно издания Baldus 1575 года.

Модель сегментации страниц для оцифрованных юридических изданий Baldus, напечатанных в Венеции в 1575 году. Её разработали в проекте Embedding the Past при TU Darmstadt и AdWL|Mainz для портала Consilia. Это базовая модель Kraken архитектуры blla, дообученная на 1 221 странице издания. Она принимает изображения страниц и выделяет базовые линии и многоугольники текстовых строк с классами издания, а также области страницы, включая две колонки и колонтитул.

Модель рассчитана прежде всего на латинскую юридическую печать XVI века с двумя колонками, римским и курсивным шрифтом, заголовками, нумерованными краткими изложениями и маргинальными номерами. На 71 отложенной тестовой странице F1 базовых линий составил 0,985, а IoU двух колонок — 0,961 и 0,962. Различение кратких изложений и основного текста слабее: около пятой части строк, предсказанных как краткие изложения, относятся к основному тексту.

Для других изданий XVI века модель может находить базовые линии, но назначение классов следует проверить; для нового макета рекомендуется дообучение на нескольких десятках страниц. Номера страниц и кустоды размечены непоследовательно, поэтому обнаруживаются нестабильно; рукописные пометы на полях обычно игнорируются или распознаются как строки основного текста. Доступна под лицензией CC BY 4.0 в формате Kraken CoreML и safetensors.

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

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

Ограничения

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

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

Consilia: kraken layout model for the Venetian legal prints of the 1570s (Baldus, Venice 1575)

A kraken baseline segmentation model (blla architecture) fine-tuned on the 1,221 training pages of consilia-baldus-venice1575-pagexml: two-column Latin legal print in roman and italic type with running titles, numbered summaries before each opinion, headings, marginal numbers and daggers in the text. It returns baselines and polygons of the text lines, typed with the classes of the Consilia edition, and the text regions of the page.

Developed in the project Embedding the Past (LOEWE-Exploration, TU Darmstadt, AdWL|Mainz), funded by HMWK Hessen, PI Prof. Dr. Michael Schonhardt, for the Consilia portal.

Classes

Target annotation on a test page: line polygons coloured by type, baselines, region outlines

What the model is trained to produce, shown on the ground truth of a test page (volume 1, page 43): line polygons coloured by class, baselines in black, region outlines.

line classwhat
cons_bodytext of a consilium (the opinion and its casus)
cons_argumentnumbered summaries (summaria) before a consilium
cons_titleheading "CONSILIVM …"
headerrunning title
page_numberprinted page number (few training examples)
catch-wordcatchword at the foot of the page (few training examples)
region classwhat
column_1, column_2the two text columns, left and right
headerrunning title
page-numberpage number
footerfoot of the page (three training examples; not reliable)
textone untyped region in the training data; never predicted in practice, ignore it

Files

filewhat
consilia_seg.mlmodelthe model in kraken's CoreML container (kraken … segment -bl -i consilia_seg.mlmodel)
consilia_seg.safetensorsthe same weights in kraken 7's safetensors format
training.logthe ketos log (validation metrics per epoch)
test.logthe ketos segtest report on the test pages
segmentation_example.jpgthe figure above

Use

kraken -i page.jpg page.xml -x segment -bl -i consilia_seg.mlmodel                       # layout only, PAGE XML
kraken -i page.jpg page.xml -x segment -bl -i consilia_seg.mlmodel ocr -m consilia_rec.mlmodel   # with the recognition model

Training

  • Data: 1,221 training pages, 100 validation pages of the dataset (split by page) with 71 test pages held out.
  • ketos segtrain -f page --resize new -N 60 --min-epochs 15 -q early --lag 10 -r 0.0002 --schedule cosine --cos-max 60 --augment --precision 16-mixed: learning rate 2e-4 with a cosine schedule, augmentation on, mixed precision, early stop after ten evaluations without improvement. Best epoch: 7 of 18 (epochs counted from 0; the stop came after ten epochs without improvement of the validation mean IU).
  • Hardware and time: one NVIDIA RTX PRO 6000 Blackwell Server Edition (96 GB) at TU Darmstadt, shared with the recognition training and a second layout training; about 3.3 minutes per epoch, 2.2 hours in all, 26 October 2026.
  • Environmental impact, estimated: the card (600 W) ran 2.9 hours for the three trainings together, 1.74 kWh × 0.38 kg CO2e per kWh (German grid average) = about 660 g CO2e, of which about 240 g fall to this model by its share of the run time.

Evaluation

kraken's ketos segtest on the 71 held-out test pages (10,091 lines), 10 px baseline tolerance:

metricvalue
baseline F1, all classes0.985 (precision 0.973, recall 0.996)
region IOU column_1 / column_20.961 / 0.962
region IOU header0.795
region IOU page-number0.000 (ten small regions in the test pages, none hit)
line classprecisionrecallF1test lines
cons_body0.9890.9990.9949,314
cons_argument0.8150.9590.876565
cons_title0.9980.9980.998120
header0.9990.9780.98574
page_number0.9860.9860.9861
catch-word0.9860.9860.9861

The full report with the class-mapping check is in test.log. The weak spot is the distinction between summaries (cons_argument) and body lines: about a fifth of the lines predicted as summaries are body lines. The two columns are found as separate regions on every test page.

Validation during training: best mean IU 0.335, baseline F1 0.968 at that epoch (training.log).

Scope and limitations

  • Trained on one print (five volumes of the same edition) and one scan set. On other sixteenth-century two-column prints expect usable baselines but check the class assignment and fine-tune on a few dozen pages of a new print for its own layout.
  • Page numbers and catchwords were annotated only on a minority of training pages; the model finds them inconsistently. Handwritten marginalia are not a class and are usually ignored or read as body lines.
  • Lines with a marginal number: the training polygons reach into the gutter where a number stands, so the model learns to include it; on pages with wide margins it can also include noise.

Licence and citation

Model weights: CC BY 4.0. Schonhardt, Michael: Consilia: kraken layout model for the Venetian legal prints of the 1570s (Baldus, Venice 1575), v1. Embedding the Past (LOEWE-Exploration, TU Darmstadt, AdWL|Mainz), 2026. https://huggingface.co/mschonhardt/consilia-baldus-venice1575-kraken-seg

Related: the dataset mschonhardt/consilia-baldus-venice1575-pagexml; the recognition model mschonhardt/consilia-baldus-venice1575-kraken-rec; the Consilia portal https://dekm-tud.github.io/coding-consilia/ and its repository https://github.com/dekm-tud/coding-consilia.

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

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

GPU в ailist

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

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

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

Ревизия весов
9568c80

0 моделей