Binary Tibetan script classifier: Uchen (དབུ་ཅན།, headed/printed script) vs Umê (དབུ་མེད།, headless/cursive script). Fine-tuned from DINOv3 ViT-S on ~10,000 manuscript scans from the Buddhist Digital Resource Center (BDRC).
Pick the variant that matches how you preprocess at inference:
Your pipeline
Weights
Inference preprocess
Center-crop whole page (resize short edge → 224, center crop)
center_crop_all/final_model.pt
--preprocess center_crop_whole_page
Raw full manuscript page (no PIL crop before DINO)
without_preprocess/final_model.pt
--preprocess none
Do not use with_preprocess/ — it was trained with center crop on train/val but evaluated on full-page test (56% acc). That train/test mismatch is why val looked ~99% while test JSON was ~56%.
Best results
Hub split: 9,110 train / 1,000 val / 851 test (work-stratified).
Variant
Train
Val
Test @ eval
Test acc
Test macro-F1
Val macro-F1 (best)
center_crop_all/
center crop
center crop
center crop
99.3%
0.983
0.996
without_preprocess/
none
none
none (full page)
80.7%
0.708
0.771
Test confusion matrices (851 pages)
Variant
uchen→uchen
uchen→ume
ume→uchen
ume→ume
center_crop_all/
94
3
3
751
without_preprocess/
97
2
165
603
See confusion_matrix.json and confusion_matrix.png in each variant folder on the Hub.
Training data
Class
Train
Validation
Test
Total
Uchen
~3,124
~340
~290
~3,754
Ume
~5,986
~660
~561
~7,207
Total pages
9,110
1,000
851
10,961
Splits are partitioned at the work level — all pages from the same manuscript stay in one split only.
1@misc{karma2026uchenume,
2 title = {Uchen-Ume Classifier: Binary Tibetan Script Classification with DINOv3},
3 author = {Karma Tashi and Elie Roux},
4 year = {2026},
5 publisher = {HuggingFace},
6 url = {https://huggingface.co/openpecha/uchen-ume-classifier},
7 note = {Funded by Khyentse Foundation. Images sourced from the Buddhist Digital Resource Center (BDRC).}
8}
Acknowledgements
Developed by Dharmaduta for the Buddhist Digital Resource Center (BDRC) Etext Corpus project, with funding from the Khyentse Foundation. Annotation guidelines by Pentsok Rtsang.