This checkpoint is a generic baseline pretrain for downstream fine-tunes (Hebrew/Samaritan, ICDAR cBAD Stage-1, other PAGE/ALTO corpora). It improves on the D-FINE Stage-0 teacher on the same multiscript Arrow validation split.
Document baseline / text-line detection → PAGE or ALTO export
Detection is set prediction of scored polylines. Polygonal line environments (BLLA) are applied only at PAGE/ALTO serialize time.
Intended use
Use for
Starting point for Stage-1 / domain fine-tuning on a target script or corpus
Zero-shot probing of baselines on heterogeneous manuscripts (expect domain gap)
Research comparing RegNetX + HybridEncoder vs D-FINE / ConvNeXt polyline siblings
Not for
Claiming official ICDAR cBAD 2019 test numbers from these Stage-0 val scores
Production OCR transcription (lines only; no text recognition)
Layout region detection (paragraphs, tables, illustrations)
Treating cbad_f1 @ conf 0.1 as the quality number (see operating point below)
Training data (Stage-0)
Same multiscript PAGE-XML / ALTO baseline Arrow as dfine-det Stage-0: HTR-United–style open corpora + private packs, compiled with adaptive simplify → uniform cubic B-spline (K=8).
Split
Pages
Train
46 511
Val (holdout)
1 923 (~5%, seed 42)
Corpus mix matches the D-FINE Stage-0 card (29 corpora, multilingual historical scripts). See the dfine-det Stage-0 model card for the full corpus table.
Important: ICDAR cBAD pages appear inside this pretrain mixture. Stage-0 validation F1 is an internal multiscript holdout, not a fair official cBAD 2019 test score. For apples-to-apples cBAD bake-offs, use a separate Stage-1-cBAD fine-tune and the official test split.
Training recipe
Hyperparameter
Value
Init
regnetx_080.tv2_in1k + D-FINE Stage-0 encoder/decoder transfer
Optimizer
AdamW; base LR (1\times10^{-4}), backbone (0.2\times)
Schedule
Linear warmup 2 epochs + cosine
Precision
bf16-mixed
Effective batch
32 (micro-batch 32 × accum 1 on MI300X)
Epochs (cap)
80; early-stop on cbad_f1_max (patience 12, min 15)
Metric: cBAD-style line F1 — Hungarian matching of densified polylines with mean bidirectional Chamfer cost; TP if cost ≤ 20 px.
Released checkpoint
Metric
Value
Notes
cbad_f1_max
≈ 0.929
Best monitored snapshot (best_0.9293.safetensors)
Best epoch
32
From bundled TensorBoard logs
Operating conf
≈ 0.40
Sweep winner at best epoch
Precision @ 0.4
≈ 0.930
Same epoch
Recall @ 0.4
≈ 0.929
Same epoch
Mean Chamfer @ best
≈ 4.0 px
Same epoch
Weights file
best_cbad_f1.safetensors
Same tensor data as best_0.9293.safetensors
Compared to the D-FINE Stage-0 teacher on the same val split: +0.036 absolute cbad_f1_max (0.893 → 0.929).
Fixed conf 0.1 F1 (cbad_f1 on the progress bar) is substantially lower than cbad_f1_max — always sweep (or use ~0.4 for this checkpoint) before comparing systems.
1@misc{bors2026regnetxdet,
2 author = {Bors, Teodor},
3 title = {regnetx-det: Set-Prediction Polyline Baselines for Historical Documents with HybridEncoder Transfer},
4 year = {2026},
5 month = aug,
6 publisher = {Zenodo},
7 version = {v1},
8 doi = {10.5281/zenodo.22059333},
9 url = {https://doi.org/10.5281/zenodo.22059333}
10}
D-FINE (HybridEncoder / decoder init)
bibtex
1@inproceedings{peng2025dfine,
2 title = {D-FINE: Redefine Regression Task in DETRs as Fine-grained Distribution Refinement},
3 author = {Peng, Yansong and Li, Hebei and Wu, Peixi and Zhang, Yueyi and Sun, Xiaoyan and Wu, Feng},
4 booktitle = {The Thirteenth International Conference on Learning Representations},
5 year = {2025},
6 url = {https://arxiv.org/abs/2410.13842}
7}
Vendored D-FINE modules: see THIRD_PARTY_NOTICES.md in the repo (Apache-2.0).
PAGE polygonalization helpers derive from Kraken/BLLA (Apache-2.0) — used at export, not in the pretrain loss.
Training corpora: respect each dataset's original license. Private packs are not redistributed with this card; only model weights trained with them are released where license allows.
License
Apache License 2.0 for the regnetx-det code and these weights. Downstream users must comply with licenses of any datasets used in further fine-tuning.