ScribblePU: Reader-PU checkpoints
Ink models can finally learn from half-labelled letters. ScribblePU is positive-unlabelled ink training: draw a 1-pixel line wherever you're sure there's ink, leave the rest unlabelled, and in a few minutes you have your own fine-tuned ink model. These are its Reader-PU checkpoints: Reader V3 retuned with ScribblePU in 15 minutes from thin centre lines on other scrolls' letters.
The awarded PHerc. 0306B First Letters row (credit: Warner & Bodill). Top: Reader V3. Bottom: reader-pu-bhand.pth,
which never saw this row: fused strokes thin out and the gaps between letters open.
A drop-in checkpoint for the team's own ink_9um inference command (koine_machines.inference.infer), and a sharper
second view next to Reader V3 for crowded rows:
python -m koine_machines.inference.infer <surface_volume.zarr> reader-pu-deconly-soup50.pth out.tif --overlap 0.5 --blend-mode hann --direction both
| File | Use it for |
|---|---|
reader-pu-deconly-soup50.pth |
the balanced companion: V3's encoder frozen, its decoder tuned in 6.9 minutes, blended 50/50 with V3 |
reader-pu-bhand.pth |
the most letter separation on crowded, high-signal rows like 0306B (15 minutes of tuning; the picture above) |
reader-pu-soup50.pth |
in between: reader-pu-bhand blended 50/50 with V3 |
Letter separation (M1) on held-out data: PHerc. 0009B 0.8371 to 0.8829, PHerc. 1667 w029 0.8221 to 0.9145.
The output is on Reader V3's 0-255 scale: look at the raw map rather than thresholding at 128.
The loss for training your own models (a drop-in koine_machines loss term), the villa patch, the tests and a script
that checks every number: https://github.com/DomRusso2/scribble-pu
MIT licence. Author: Domenico Russo.
