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

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 class | what |
|---|---|
cons_body | text of a consilium (the opinion and its casus) |
cons_argument | numbered summaries (summaria) before a consilium |
cons_title | heading "CONSILIVM …" |
header | running title |
page_number | printed page number (few training examples) |
catch-word | catchword at the foot of the page (few training examples) |
| region class | what |
|---|---|
column_1, column_2 | the two text columns, left and right |
header | running title |
page-number | page number |
footer | foot of the page (three training examples; not reliable) |
text | one untyped region in the training data; never predicted in practice, ignore it |
Files
| file | what |
|---|---|
consilia_seg.mlmodel | the model in kraken's CoreML container (kraken … segment -bl -i consilia_seg.mlmodel) |
consilia_seg.safetensors | the same weights in kraken 7's safetensors format |
training.log | the ketos log (validation metrics per epoch) |
test.log | the ketos segtest report on the test pages |
segmentation_example.jpg | the 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:
| metric | value |
|---|---|
| baseline F1, all classes | 0.985 (precision 0.973, recall 0.996) |
region IOU column_1 / column_2 | 0.961 / 0.962 |
region IOU header | 0.795 |
region IOU page-number | 0.000 (ten small regions in the test pages, none hit) |
| line class | precision | recall | F1 | test lines |
|---|---|---|---|---|
cons_body | 0.989 | 0.999 | 0.994 | 9,314 |
cons_argument | 0.815 | 0.959 | 0.876 | 565 |
cons_title | 0.998 | 0.998 | 0.998 | 120 |
header | 0.999 | 0.978 | 0.985 | 74 |
page_number | 0.986 | 0.986 | 0.986 | 1 |
catch-word | 0.986 | 0.986 | 0.986 | 1 |
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.