PiotrSty/trocr-pl-mixed-aug-light-v1
018
PiotrSty/trocr-pl-mixed-aug-light-v1 (experimental)
Fine-tune of PiotrSty/trocr-pl-base on synthetic Polish print + real EHRI typewritten Polish lines + 3× light-augmented EHRI train lines. run 6 used medium augmentations (5×) which improved typewriter but regressed print (5.36% → 7.37%). This run uses light strength (blur+noise only, no gamma/JPEG/contrast) with 3× copies to test if gentler augmentations avoid the print regression while keeping the typewriter gain.
Training
- Base: PiotrSty/trocr-pl-base
- Method: QLoRA on decoder attention (q/k/v/out_proj), rank 16, alpha 32
- Train: 2000 synthetic + 349 real EHRI + 698 light-augmented EHRI = 3047 lines
- Val: 38 EHRI lines (held-out doc ZIH3010905, not augmented)
- Epochs: 15, batch 8, lr 1e-4, T4 x2
- Best checkpoint: /kaggle/working/trocr-pl-run7/checkpoint-1410 (val CER 0.2777, WER 0.6456)
- Document-level split, no line leakage. Light augmentations only on train.
Evaluation on frozen held-out sets
Limitations
- Line recognizer only; page segmentation on faded typewriter is unreliable.
- Augmentations are synthetic; real data diversity still matters.
- Do NOT use as drop-in replacement without your own eval.
Provenance
See run.json, selection.json, bestmetrics.json in this repo. Source: https://github.com/PiotrStyla/OCRengine (commit 9911c81) EHRI dataset: https://huggingface.co/datasets/PiotrSty/ehri-pl-lines
