Publish DE·HTR browser release
Browse filesVerified int8 ONNX and PyTorch artifacts, full metric evidence, page-disjoint training manifest, license registers, and a runnable inference example.
- NOTICE +9 -2
- README.md +9 -5
- training-data/FONTS.md +20 -13
- training-data/SOURCES.md +52 -18
NOTICE
CHANGED
|
@@ -8,6 +8,13 @@ The browser demo includes the Patrick Hand font, Copyright (c) 2010-2012
|
|
| 8 |
Patrick Wagesreiter (mail@patrickwagesreiter.at), licensed under the SIL Open
|
| 9 |
Font License, Version 1.1.
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
The complete third-party license texts accompany the distributed files. See
|
| 12 |
-
THIRD_PARTY_NOTICES.md in the source and model repositories
|
| 13 |
-
license files in the browser demo.
|
|
|
|
| 8 |
Patrick Wagesreiter (mail@patrickwagesreiter.at), licensed under the SIL Open
|
| 9 |
Font License, Version 1.1.
|
| 10 |
|
| 11 |
+
The source repository additionally redistributes, outside the browser demo and
|
| 12 |
+
the model release, the unmodified "deu" Tesseract language model
|
| 13 |
+
(data/tessdata/deu.traineddata) from the tessdata_best project, Copyright
|
| 14 |
+
Google Inc. and the tesseract-ocr contributors, licensed under the Apache
|
| 15 |
+
License, Version 2.0. It is an input to the M1 baseline only; nothing derived
|
| 16 |
+
from it is part of the DE·HTR model.
|
| 17 |
+
|
| 18 |
The complete third-party license texts accompany the distributed files. See
|
| 19 |
+
THIRD_PARTY_NOTICES.md in the source and model repositories, data/SOURCES.md for
|
| 20 |
+
the full register, and the linked license files in the browser demo.
|
README.md
CHANGED
|
@@ -28,7 +28,7 @@ DE·HTR is a compact line-level recognizer for **modern German handwriting**. Th
|
|
| 28 |
|
| 29 |
## Why this model exists
|
| 30 |
|
| 31 |
-
Large general-purpose vision-language models will often be more accurate on unconstrained handwriting because they bring language priors and broad visual knowledge. DE·HTR instead targets a different operating point: a small inspectable artifact, predictable latency, offline execution, no per-call cost, and no image upload. On the same frozen 601-line test split, the measured 4-bit Qwen2.5-VL-7B baseline reached 9.44% CER (95% CI 8.33–10.65), while the three DE·HTR CTC seeds averaged 8.15% CER (seed 42: 7.40–9.10). Those intervals overlap substantially and no paired significance test was run, so the two should be read as **statistically indistinguishable on this test set** rather than as an accuracy win. The release argument is size, offline execution, and latency; this is not a claim that this model beats current large VLMs generally.
|
| 32 |
|
| 33 |
## Intended use and scope
|
| 34 |
|
|
@@ -55,7 +55,7 @@ The model must not be represented as a full-page OCR system. It has no layout de
|
|
| 55 |
| `examples/infer_onnx.py` | runnable end-to-end inference example (preprocessing + greedy CTC decode) |
|
| 56 |
| `examples/0107-000.png` | one held-out **test**-split line for a first run, CC BY 4.0 (see `training-data/SOURCES.md`) |
|
| 57 |
| `results/` | committed metric JSON, predictions, confidence intervals, and browser evidence |
|
| 58 |
-
| `training-data/` | frozen
|
| 59 |
| `LICENSE`, `NOTICE` | Apache License 2.0 and copyright/attribution notices |
|
| 60 |
| `THIRD_PARTY_NOTICES.md`, `third_party/` | third-party component licenses in full |
|
| 61 |
|
|
@@ -104,8 +104,9 @@ The frozen manifest is published at `training-data/split_manifest.json`. Full so
|
|
| 104 |
Real line data:
|
| 105 |
|
| 106 |
- ScaDS.AI German Line- and Word-Level Handwriting Dataset (v1.0) by Thomas Burghardt and Ahmad Alzin, Zenodo, doi:10.5281/zenodo.18301532, licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/);
|
| 107 |
-
- 5,843 lines from 385
|
| 108 |
-
-
|
|
|
|
| 109 |
- ten visually corrupt or unalignable training pairs were excluded from CTC loss only; the frozen manifest was not changed.
|
| 110 |
|
| 111 |
Synthetic data:
|
|
@@ -120,7 +121,7 @@ Training used PyTorch 2.11.0+cu128 on an NVIDIA RTX A5000, bfloat16 AMP, batch s
|
|
| 120 |
|
| 121 |
## Evaluation protocol
|
| 122 |
|
| 123 |
-
All headline results use the immutable
|
| 124 |
|
| 125 |
### Baselines on the frozen test set
|
| 126 |
|
|
@@ -157,11 +158,14 @@ Two runs reached their fixed epoch cap while validation CER was still improving,
|
|
| 157 |
| ONNX int8, Node ORT | 601 | 8.5681% | identical to Python ORT | about 70 ms |
|
| 158 |
| ONNX int8, browser WASM | 50 | 5.7937% | +0.0397 points vs Node on the same 50 lines | 253 ms |
|
| 159 |
|
|
|
|
|
|
|
| 160 |
Browser evaluation used headless Chrome 151 on an Apple M1. The first 50 frozen test-manifest lines were evaluated; browser and Node differed on one prediction because browser Canvas and Pillow resizing are not bit-identical. The parity gate is an absolute CER delta no greater than 0.2 percentage points, matching the fp32 parity tolerance. Browser cold model load was 243 ms from a local static server. The verifier observed no HTTP request after readiness and no console/page errors. See `results/m4/browser.json` for exact measurements.
|
| 161 |
|
| 162 |
## Limitations and risks
|
| 163 |
|
| 164 |
- Accuracy is measured on one modern German handwriting collection; other writers, capture conditions, and document genres may shift performance.
|
|
|
|
| 165 |
- Greedy CTC decoding lacks lexical correction and can produce plausible-looking character errors.
|
| 166 |
- The model does not detect or crop lines. Supplying a full page is unsupported.
|
| 167 |
- The 195-character alphabet is intentionally fixed from training sources and a Latin-1 repertoire. Unsupported characters cannot be emitted.
|
|
|
|
| 28 |
|
| 29 |
## Why this model exists
|
| 30 |
|
| 31 |
+
Large general-purpose vision-language models will often be more accurate on unconstrained handwriting because they bring language priors and broad visual knowledge. DE·HTR instead targets a different operating point: a small inspectable artifact, predictable latency, offline execution, no per-call cost, and no image upload. On the same frozen 601-line test split, the measured 4-bit Qwen2.5-VL-7B baseline reached 9.44% CER (95% CI 8.33–10.65), while the three DE·HTR CTC seeds averaged 8.15% CER (seed 42: 7.40–9.10; that mean is the CUDA training figure — the published int8 artifact measures 8.5681% on CPU, see [ONNX and browser parity](#onnx-and-browser-parity)). Those intervals overlap substantially and no paired significance test was run, so the two should be read as **statistically indistinguishable on this test set** rather than as an accuracy win. The release argument is size, offline execution, and latency; this is not a claim that this model beats current large VLMs generally.
|
| 32 |
|
| 33 |
## Intended use and scope
|
| 34 |
|
|
|
|
| 55 |
| `examples/infer_onnx.py` | runnable end-to-end inference example (preprocessing + greedy CTC decode) |
|
| 56 |
| `examples/0107-000.png` | one held-out **test**-split line for a first run, CC BY 4.0 (see `training-data/SOURCES.md`) |
|
| 57 |
| `results/` | committed metric JSON, predictions, confidence intervals, and browser evidence |
|
| 58 |
+
| `training-data/` | frozen page-disjoint split and complete dataset/font/dependency license registers |
|
| 59 |
| `LICENSE`, `NOTICE` | Apache License 2.0 and copyright/attribution notices |
|
| 60 |
| `THIRD_PARTY_NOTICES.md`, `third_party/` | third-party component licenses in full |
|
| 61 |
|
|
|
|
| 104 |
Real line data:
|
| 105 |
|
| 106 |
- ScaDS.AI German Line- and Word-Level Handwriting Dataset (v1.0) by Thomas Burghardt and Ahmad Alzin, Zenodo, doi:10.5281/zenodo.18301532, licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/);
|
| 107 |
+
- 5,843 lines from 385 pages (the collection ships line-level ground truth for all 775 pages but line crops for only 385, so the split covers those 385);
|
| 108 |
+
- page-disjoint split: 309/38/38 pages and 4,675/567/601 lines for train/validation/test;
|
| 109 |
+
- **"writer" means "page" throughout.** The corpus provides no writer identifiers, so the manifest uses `page_id` as the writer proxy (`writer_id_field`). Each page carries one hand, but nothing in the corpus rules out one person having written several pages, so writer-level disjointness is a documented assumption rather than a verified property. The only identifying metadata, `(gender, yearofbirth)`, is too coarse to check it: the 385 split pages fall into 90 such profiles and every profile in test also occurs in train;
|
| 110 |
- ten visually corrupt or unalignable training pairs were excluded from CTC loss only; the frozen manifest was not changed.
|
| 111 |
|
| 112 |
Synthetic data:
|
|
|
|
| 121 |
|
| 122 |
## Evaluation protocol
|
| 123 |
|
| 124 |
+
All headline results use the immutable page-disjoint 601-line real test set (see the writer-proxy note under [Training data](#training-data)). CER and WER normalize Unicode to NFC and collapse whitespace without case or punctuation folding. Confidence intervals are 95% percentile intervals from 10,000 line-level bootstrap resamples with NumPy RNG seed 0. Metric and prediction files were written by committed evaluation scripts; values below are not manually transcribed from model output.
|
| 125 |
|
| 126 |
### Baselines on the frozen test set
|
| 127 |
|
|
|
|
| 158 |
| ONNX int8, Node ORT | 601 | 8.5681% | identical to Python ORT | about 70 ms |
|
| 159 |
| ONNX int8, browser WASM | 50 | 5.7937% | +0.0397 points vs Node on the same 50 lines | 253 ms |
|
| 160 |
|
| 161 |
+
Two figures for the same checkpoint are both correct and describe different things. The M2 training result (8.21% for this seed, 8.15% as the three-seed mean) was measured on CUDA; the PyTorch CPU control above scores 8.5035% on the identical checkpoint and inputs. That 0.29-point gap comes from the CUDA and CPU GRU kernels, not from the export — which is why parity is measured against a same-backend CPU control. The number that describes the artifact published here is **8.5681%** (int8, CPU/WASM).
|
| 162 |
+
|
| 163 |
Browser evaluation used headless Chrome 151 on an Apple M1. The first 50 frozen test-manifest lines were evaluated; browser and Node differed on one prediction because browser Canvas and Pillow resizing are not bit-identical. The parity gate is an absolute CER delta no greater than 0.2 percentage points, matching the fp32 parity tolerance. Browser cold model load was 243 ms from a local static server. The verifier observed no HTTP request after readiness and no console/page errors. See `results/m4/browser.json` for exact measurements.
|
| 164 |
|
| 165 |
## Limitations and risks
|
| 166 |
|
| 167 |
- Accuracy is measured on one modern German handwriting collection; other writers, capture conditions, and document genres may shift performance.
|
| 168 |
+
- The held-out split separates pages, not verified writers. If a contributor wrote several pages in the corpus, some test hands may also appear in training, which would make the reported CER optimistic. The corpus ships no writer identifiers, so this cannot be checked.
|
| 169 |
- Greedy CTC decoding lacks lexical correction and can produce plausible-looking character errors.
|
| 170 |
- The model does not detect or crop lines. Supplying a full page is unsupported.
|
| 171 |
- The 195-character alphabet is intentionally fixed from training sources and a Latin-1 repertoire. Unsupported characters cannot be emitted.
|
training-data/FONTS.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# Handwriting fonts for synthetic training data
|
| 2 |
|
| 3 |
These fonts are used to render German text for **synthetic training data** (Tier 3). Every font listed below was **individually verified** for:
|
|
@@ -5,22 +12,22 @@ These fonts are used to render German text for **synthetic training data** (Tier
|
|
| 5 |
1. **License** — SIL Open Font License 1.1 only (sourced from the Google Fonts `ofl/` tree). Personal-use-only fonts are categorically rejected.
|
| 6 |
2. **German charset** — cmap coverage of Ä Ö Ü ä ö ü ß (`U+00C4 U+00D6 U+00DC U+00E4 U+00F6 U+00FC U+00DF`) via `fontTools.ttLib.TTFont.getBestCmap()`.
|
| 7 |
|
| 8 |
-
TTF files live in `data/fonts/`. Matching license texts live in `data/
|
| 9 |
|
| 10 |
| Font | File | Source URL | License | License file | German glyphs verified (method: fontTools cmap check) | Access date |
|
| 11 |
|------|------|------------|---------|--------------|------------------------------------------------------|-------------|
|
| 12 |
-
| Caveat | `Caveat[wght].ttf` | https://github.com/google/fonts/raw/main/ofl/caveat/Caveat%5Bwght%5D.ttf | SIL Open Font License 1.1 | `licenses/Caveat_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 13 |
-
| Kalam | `Kalam-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/kalam/Kalam-Regular.ttf | SIL Open Font License 1.1 | `licenses/Kalam_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 14 |
-
| Patrick Hand | `PatrickHand-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/patrickhand/PatrickHand-Regular.ttf | SIL Open Font License 1.1 | `licenses/Patrick_Hand_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 15 |
-
| Shadows Into Light | `ShadowsIntoLight.ttf` | https://github.com/google/fonts/raw/main/ofl/shadowsintolight/ShadowsIntoLight.ttf | SIL Open Font License 1.1 | `licenses/Shadows_Into_Light_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 16 |
-
| Shadows Into Light Two | `ShadowsIntoLightTwo-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/shadowsintolighttwo/ShadowsIntoLightTwo-Regular.ttf | SIL Open Font License 1.1 | `licenses/Shadows_Into_Light_Two_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 17 |
-
| Indie Flower | `IndieFlower-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/indieflower/IndieFlower-Regular.ttf | SIL Open Font License 1.1 | `licenses/Indie_Flower_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 18 |
-
| Architects Daughter | `ArchitectsDaughter-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/architectsdaughter/ArchitectsDaughter-Regular.ttf | SIL Open Font License 1.1 | `licenses/Architects_Daughter_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 19 |
-
| Reenie Beanie | `ReenieBeanie.ttf` | https://github.com/google/fonts/raw/main/ofl/reeniebeanie/ReenieBeanie.ttf | SIL Open Font License 1.1 | `licenses/Reenie_Beanie_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 20 |
-
| Gloria Hallelujah | `GloriaHallelujah.ttf` | https://github.com/google/fonts/raw/main/ofl/gloriahallelujah/GloriaHallelujah.ttf | SIL Open Font License 1.1 | `licenses/Gloria_Hallelujah_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 21 |
-
| La Belle Aurore | `LaBelleAurore.ttf` | https://github.com/google/fonts/raw/main/ofl/labelleaurore/LaBelleAurore.ttf | SIL Open Font License 1.1 | `licenses/La_Belle_Aurore_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 22 |
-
| Waiting for the Sunrise | `WaitingfortheSunrise.ttf` | https://github.com/google/fonts/raw/main/ofl/waitingforthesunrise/WaitingfortheSunrise.ttf | SIL Open Font License 1.1 | `licenses/Waiting_for_the_Sunrise_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 23 |
-
| Covered By Your Grace | `CoveredByYourGrace.ttf` | https://github.com/google/fonts/raw/main/ofl/coveredbyyourgrace/CoveredByYourGrace.ttf | SIL Open Font License 1.1 | `licenses/Covered_By_Your_Grace_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 24 |
|
| 25 |
## Verification
|
| 26 |
|
|
|
|
| 1 |
+
> **Published copy.** This file is the release copy of `data/FONTS.md` from
|
| 2 |
+
> [https://github.com/naeyn/de-htr-web](https://github.com/naeyn/de-htr-web). Paths to files that ship in this release have been rewritten to
|
| 3 |
+
> their locations here (`training-data/…`). Any other repository-relative path —
|
| 4 |
+
> `src/…`, `scripts/…`, `DECISIONS.md`, the raw corpora, the font `.ttf` files, and
|
| 5 |
+
> `data/german_wikipedia_lines.txt` — refers to the source repository, which is the
|
| 6 |
+
> only place those files exist.
|
| 7 |
+
|
| 8 |
# Handwriting fonts for synthetic training data
|
| 9 |
|
| 10 |
These fonts are used to render German text for **synthetic training data** (Tier 3). Every font listed below was **individually verified** for:
|
|
|
|
| 12 |
1. **License** — SIL Open Font License 1.1 only (sourced from the Google Fonts `ofl/` tree). Personal-use-only fonts are categorically rejected.
|
| 13 |
2. **German charset** — cmap coverage of Ä Ö Ü ä ö ü ß (`U+00C4 U+00D6 U+00DC U+00E4 U+00F6 U+00FC U+00DF`) via `fontTools.ttLib.TTFont.getBestCmap()`.
|
| 14 |
|
| 15 |
+
TTF files live in `data/fonts/`. Matching license texts live in `training-data/font-licenses/`.
|
| 16 |
|
| 17 |
| Font | File | Source URL | License | License file | German glyphs verified (method: fontTools cmap check) | Access date |
|
| 18 |
|------|------|------------|---------|--------------|------------------------------------------------------|-------------|
|
| 19 |
+
| Caveat | `Caveat[wght].ttf` | https://github.com/google/fonts/raw/main/ofl/caveat/Caveat%5Bwght%5D.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Caveat_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 20 |
+
| Kalam | `Kalam-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/kalam/Kalam-Regular.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Kalam_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 21 |
+
| Patrick Hand | `PatrickHand-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/patrickhand/PatrickHand-Regular.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Patrick_Hand_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 22 |
+
| Shadows Into Light | `ShadowsIntoLight.ttf` | https://github.com/google/fonts/raw/main/ofl/shadowsintolight/ShadowsIntoLight.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Shadows_Into_Light_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 23 |
+
| Shadows Into Light Two | `ShadowsIntoLightTwo-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/shadowsintolighttwo/ShadowsIntoLightTwo-Regular.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Shadows_Into_Light_Two_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 24 |
+
| Indie Flower | `IndieFlower-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/indieflower/IndieFlower-Regular.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Indie_Flower_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 25 |
+
| Architects Daughter | `ArchitectsDaughter-Regular.ttf` | https://github.com/google/fonts/raw/main/ofl/architectsdaughter/ArchitectsDaughter-Regular.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Architects_Daughter_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 26 |
+
| Reenie Beanie | `ReenieBeanie.ttf` | https://github.com/google/fonts/raw/main/ofl/reeniebeanie/ReenieBeanie.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Reenie_Beanie_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 27 |
+
| Gloria Hallelujah | `GloriaHallelujah.ttf` | https://github.com/google/fonts/raw/main/ofl/gloriahallelujah/GloriaHallelujah.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Gloria_Hallelujah_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 28 |
+
| La Belle Aurore | `LaBelleAurore.ttf` | https://github.com/google/fonts/raw/main/ofl/labelleaurore/LaBelleAurore.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/La_Belle_Aurore_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 29 |
+
| Waiting for the Sunrise | `WaitingfortheSunrise.ttf` | https://github.com/google/fonts/raw/main/ofl/waitingforthesunrise/WaitingfortheSunrise.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Waiting_for_the_Sunrise_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 30 |
+
| Covered By Your Grace | `CoveredByYourGrace.ttf` | https://github.com/google/fonts/raw/main/ofl/coveredbyyourgrace/CoveredByYourGrace.ttf | SIL Open Font License 1.1 | `training-data/font-licenses/Covered_By_Your_Grace_OFL.txt` | PASS (Ä Ö Ü ä ö ü ß) | 2026-07-28 |
|
| 31 |
|
| 32 |
## Verification
|
| 33 |
|
training-data/SOURCES.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# License register — `de-htr-web`
|
| 2 |
|
| 3 |
**Project:** `de-htr-web`
|
|
@@ -12,7 +19,7 @@ Licenses below are copied from `.metadata.license.id` on the live Zenodo API rec
|
|
| 12 |
|
| 13 |
| Dataset | Creators | Zenodo record URL | DOI | Content | License | Confirmed on record page | Access date |
|
| 14 |
|---------|----------|-------------------|-----|---------|---------|--------------------------|-------------|
|
| 15 |
-
| ScaDS.AI German Line- and Word-Level Handwriting Dataset (v1.0) | Burghardt, Thomas; Alzin, Ahmad | https://zenodo.org/records/18301532 | 10.5281/zenodo.18301532 | 775
|
| 16 |
| ScaDS.AI German Full-Page Handwriting Dataset | Nestler, Till; Burghardt, Thomas | https://zenodo.org/records/18283705 | 10.5281/zenodo.18283705 | 77 pages; **not used** in the v1 release (see status note) | `cc-by-4.0` | yes (API `.metadata.license.id` = `cc-by-4.0`) | 2026-07-28 |
|
| 17 |
|
| 18 |
**Required CC BY 4.0 attribution.** CC BY 4.0 §3(a)(1)(A)(i) requires retaining
|
|
@@ -32,14 +39,27 @@ Creator names were read from `.metadata.creators[].name` on the live Zenodo API
|
|
| 32 |
held-out set for the optional M5 full-page milestone. M5 was skipped (DECISIONS.md D12), so
|
| 33 |
this record contributed **no training, validation, or test data** to the v1 release. It was
|
| 34 |
downloaded only to verify that it shares no writer with the line set
|
| 35 |
-
(`fullpage_writer_overlap == []` in `data/split_manifest.json`). Its attribution is retained
|
| 36 |
here because the data was obtained and inspected.
|
| 37 |
|
| 38 |
-
**Coverage note (measured, not from the record description):** the 775 pages
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
| 44 |
---
|
| 45 |
|
|
@@ -63,7 +83,7 @@ None of these are used in v1.
|
|
| 63 |
|
| 64 |
Synthetic-data inputs:
|
| 65 |
|
| 66 |
-
- **Fonts:** see `data/FONTS.md`. SIL OFL 1.1 only.
|
| 67 |
- **German Wikipedia text corpus:** 10,234 clean rendering lines in
|
| 68 |
`data/german_wikipedia_lines.txt`, fetched reproducibly from 355 German Wikipedia
|
| 69 |
page revisions. `data/german_wikipedia_sources.json` records every title, page ID,
|
|
@@ -93,7 +113,7 @@ Versions from `uv.lock` / `package-lock.json`. Licenses from package metadata an
|
|
| 93 |
| tqdm | 4.70.0 | `MPL-2.0 AND MIT` (`info.license`) | https://pypi.org/project/tqdm/ |
|
| 94 |
| requests | 2.34.2 | `Apache-2.0` (`info.license`; classifier `License :: OSI Approved :: Apache Software License`) | https://pypi.org/project/requests/ |
|
| 95 |
| fonttools | 4.63.0 | `MIT` (`info.license`) | https://pypi.org/project/fonttools/ |
|
| 96 |
-
| torch | 2.13.0 | `Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT` (`info.license_expression`; `info.license` null) | https://pypi.org/project/torch/ |
|
| 97 |
| torchvision | 0.28.0 | `BSD` (`info.license` as published; ambiguous, not normalized) | https://pypi.org/project/torchvision/ |
|
| 98 |
| transformers | 5.14.1 | `Apache 2.0 License` (`info.license` as published) | https://pypi.org/project/transformers/ |
|
| 99 |
| sentencepiece | 0.2.2 | `Apache-2.0` (`info.license_expression`; `info.license` null) | https://pypi.org/project/sentencepiece/ |
|
|
@@ -104,6 +124,13 @@ Versions from `uv.lock` / `package-lock.json`. Licenses from package metadata an
|
|
| 104 |
| onnxruntime-node | 1.27.0 | `MIT` (`package.json`) | https://www.npmjs.com/package/onnxruntime-node |
|
| 105 |
| onnxruntime-web | 1.27.0 | `MIT` (`package.json`) | https://www.npmjs.com/package/onnxruntime-web |
|
| 106 |
| puppeteer | 25.4.0 | `Apache-2.0` (`package.json`; release verifier only) | https://www.npmjs.com/package/puppeteer |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
|
| 108 |
---
|
| 109 |
|
|
@@ -145,17 +172,24 @@ this project has not measured.
|
|
| 145 |
|
| 146 |
---
|
| 147 |
|
| 148 |
-
##
|
| 149 |
|
| 150 |
The Apache License 2.0 in `LICENSE` covers this project's own code and released model
|
| 151 |
-
artifacts
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
|
| 157 |
-
|
|
| 158 |
-
| `data/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 159 |
|
| 160 |
Third-party assets redistributed by the **browser distribution** (ONNX Runtime Web, and the
|
| 161 |
Patrick Hand demo font) are recorded separately in `THIRD_PARTY_NOTICES.md`, with their
|
|
|
|
| 1 |
+
> **Published copy.** This file is the release copy of `data/SOURCES.md` from
|
| 2 |
+
> [https://github.com/naeyn/de-htr-web](https://github.com/naeyn/de-htr-web). Paths to files that ship in this release have been rewritten to
|
| 3 |
+
> their locations here (`training-data/…`). Any other repository-relative path —
|
| 4 |
+
> `src/…`, `scripts/…`, `DECISIONS.md`, the raw corpora, the font `.ttf` files, and
|
| 5 |
+
> `data/german_wikipedia_lines.txt` — refers to the source repository, which is the
|
| 6 |
+
> only place those files exist.
|
| 7 |
+
|
| 8 |
# License register — `de-htr-web`
|
| 9 |
|
| 10 |
**Project:** `de-htr-web`
|
|
|
|
| 19 |
|
| 20 |
| Dataset | Creators | Zenodo record URL | DOI | Content | License | Confirmed on record page | Access date |
|
| 21 |
|---------|----------|-------------------|-----|---------|---------|--------------------------|-------------|
|
| 22 |
+
| ScaDS.AI German Line- and Word-Level Handwriting Dataset (v1.0) | Burghardt, Thomas; Alzin, Ahmad | https://zenodo.org/records/18301532 | 10.5281/zenodo.18301532 | 775 page images; 5,843 line images; 37,406 word images (the record does not state a writer count) | `cc-by-4.0` | yes (API `.metadata.license.id` = `cc-by-4.0`) | 2026-07-28 |
|
| 23 |
| ScaDS.AI German Full-Page Handwriting Dataset | Nestler, Till; Burghardt, Thomas | https://zenodo.org/records/18283705 | 10.5281/zenodo.18283705 | 77 pages; **not used** in the v1 release (see status note) | `cc-by-4.0` | yes (API `.metadata.license.id` = `cc-by-4.0`) | 2026-07-28 |
|
| 24 |
|
| 25 |
**Required CC BY 4.0 attribution.** CC BY 4.0 §3(a)(1)(A)(i) requires retaining
|
|
|
|
| 39 |
held-out set for the optional M5 full-page milestone. M5 was skipped (DECISIONS.md D12), so
|
| 40 |
this record contributed **no training, validation, or test data** to the v1 release. It was
|
| 41 |
downloaded only to verify that it shares no writer with the line set
|
| 42 |
+
(`fullpage_writer_overlap == []` in `training-data/split_manifest.json`). Its attribution is retained
|
| 43 |
here because the data was obtained and inspected.
|
| 44 |
|
| 45 |
+
**Coverage note (measured, not from the record description):** the 775 pages describe the full
|
| 46 |
+
collection. Line-level ground truth exists for all 775 (775 XML files), but line **crops** exist
|
| 47 |
+
for only **385** of those pages, so the other 5,976 ground-truth lines are unusable as shipped and
|
| 48 |
+
are recorded as `xml_lines_skipped_missing_image` in `training-data/split_manifest.json`. The frozen
|
| 49 |
+
page-disjoint split therefore covers 385 pages / 5,843 lines (309/38/38 pages →
|
| 50 |
+
4,675/567/601 lines). The 77-page full-page set shares **no** page identifier with the line set
|
| 51 |
+
(verified: `fullpage_writer_overlap == []`), so it remains a clean held-out set under the same
|
| 52 |
+
proxy caveat below.
|
| 53 |
+
|
| 54 |
+
**Writer-identity note (release-relevant).** The corpus ships **no writer identifiers**. The
|
| 55 |
+
split treats one page as one writer (`writer_id_field: page_id` in the manifest), so the split is
|
| 56 |
+
verifiably *page*-disjoint and only assumed to be *writer*-disjoint. The only identifying
|
| 57 |
+
metadata in the collection (`metadata/Uni_Leipzig_01-export-251205.csv`: `gender`,
|
| 58 |
+
`yearofbirth`) is too coarse to test the assumption — the 385 split pages fall into 90 such
|
| 59 |
+
profiles, up to 12 pages per profile, and every profile present in test also occurs in train. If
|
| 60 |
+
one contributor wrote several pages, some test hands may also appear in training and the reported
|
| 61 |
+
CER would be optimistic. This is stated in the README and the model card rather than left
|
| 62 |
+
implicit.
|
| 63 |
|
| 64 |
---
|
| 65 |
|
|
|
|
| 83 |
|
| 84 |
Synthetic-data inputs:
|
| 85 |
|
| 86 |
+
- **Fonts:** see `training-data/FONTS.md`. SIL OFL 1.1 only.
|
| 87 |
- **German Wikipedia text corpus:** 10,234 clean rendering lines in
|
| 88 |
`data/german_wikipedia_lines.txt`, fetched reproducibly from 355 German Wikipedia
|
| 89 |
page revisions. `data/german_wikipedia_sources.json` records every title, page ID,
|
|
|
|
| 113 |
| tqdm | 4.70.0 | `MPL-2.0 AND MIT` (`info.license`) | https://pypi.org/project/tqdm/ |
|
| 114 |
| requests | 2.34.2 | `Apache-2.0` (`info.license`; classifier `License :: OSI Approved :: Apache Software License`) | https://pypi.org/project/requests/ |
|
| 115 |
| fonttools | 4.63.0 | `MIT` (`info.license`) | https://pypi.org/project/fonttools/ |
|
| 116 |
+
| torch | 2.13.0 (current lock; **M2 training ran on 2.11.0+cu128** from the CUDA index — see the note below the table) | `Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND BSL-1.0 AND MIT` (`info.license_expression`; `info.license` null) | https://pypi.org/project/torch/ |
|
| 117 |
| torchvision | 0.28.0 | `BSD` (`info.license` as published; ambiguous, not normalized) | https://pypi.org/project/torchvision/ |
|
| 118 |
| transformers | 5.14.1 | `Apache 2.0 License` (`info.license` as published) | https://pypi.org/project/transformers/ |
|
| 119 |
| sentencepiece | 0.2.2 | `Apache-2.0` (`info.license_expression`; `info.license` null) | https://pypi.org/project/sentencepiece/ |
|
|
|
|
| 124 |
| onnxruntime-node | 1.27.0 | `MIT` (`package.json`) | https://www.npmjs.com/package/onnxruntime-node |
|
| 125 |
| onnxruntime-web | 1.27.0 | `MIT` (`package.json`) | https://www.npmjs.com/package/onnxruntime-web |
|
| 126 |
| puppeteer | 25.4.0 | `Apache-2.0` (`package.json`; release verifier only) | https://www.npmjs.com/package/puppeteer |
|
| 127 |
+
| adm-zip | 0.6.0 | `MIT` (`package-lock.json`) — transitive dependency of `onnxruntime-node`, pinned forward from its `^0.5.16` range by the `overrides` block in `package.json` (DECISIONS.md D14); build/eval only, never shipped | https://www.npmjs.com/package/adm-zip |
|
| 128 |
+
|
| 129 |
+
**Versions differ between the lock files and the training runs.** The table records what
|
| 130 |
+
`uv.lock` / `package-lock.json` resolve today. M2 training ran on a rented Linux GPU host with
|
| 131 |
+
`torch 2.11.0+cu128` (CUDA 12.8) and `transformers 5.14.1`; the M3 PyTorch CPU control ran on
|
| 132 |
+
`torch 2.13.0`. Every run's exact environment is recorded in its own `results/**.json` under
|
| 133 |
+
`environment` / `config.environment`, which are the authoritative record for reproduction.
|
| 134 |
|
| 135 |
---
|
| 136 |
|
|
|
|
| 172 |
|
| 173 |
---
|
| 174 |
|
| 175 |
+
## Third-party files redistributed in this repository
|
| 176 |
|
| 177 |
The Apache License 2.0 in `LICENSE` covers this project's own code and released model
|
| 178 |
+
artifacts, and its copyright line (`NOTICE`) speaks only for this project. The files below are
|
| 179 |
+
third-party works committed alongside it; they keep their own licenses and copyright holders.
|
| 180 |
+
Paths are relative to the GitHub source repository, and none of these files is part of the
|
| 181 |
+
Hugging Face model release:
|
| 182 |
+
|
| 183 |
+
| Path | License | Copyright holder | Notice |
|
| 184 |
+
|------|---------|------------------|--------|
|
| 185 |
+
| `data/german_wikipedia_lines.txt` | `CC BY-SA 4.0` | the respective German Wikipedia contributors | `data/german_wikipedia_lines.LICENSE.txt`, `data/german_wikipedia_sources.json` |
|
| 186 |
+
| `data/fonts/*.ttf` | `SIL OFL 1.1` | the respective font authors | `training-data/font-licenses/`, `training-data/FONTS.md` |
|
| 187 |
+
| `data/tessdata/deu.traineddata` | `Apache-2.0` (same license as this project, but **not** this project's copyright) | Google Inc. and the tesseract-ocr contributors | `NOTICE`; upstream https://github.com/tesseract-ocr/tessdata_best |
|
| 188 |
+
|
| 189 |
+
`data/tessdata/deu.traineddata` is the unmodified `deu` model from `tessdata_best`, committed so
|
| 190 |
+
the M1 Tesseract floor baseline (`scripts/baseline_tesseract.py`) is reproducible without a
|
| 191 |
+
second download. It is used only as a baseline input: nothing derived from it enters the released
|
| 192 |
+
model.
|
| 193 |
|
| 194 |
Third-party assets redistributed by the **browser distribution** (ONNX Runtime Web, and the
|
| 195 |
Patrick Hand demo font) are recorded separately in `THIRD_PARTY_NOTICES.md`, with their
|