CoolFace
Datasetpublic

BDRC/tibetan-page-orientation-classifier-dataset

Tibetan Page Orientation Dataset Covers 7 Tibetan script families: Danyig, Druma, Gyuyig, Multi-Scripts, Pedri, Tsugdri, Uchen. Dataset composition Each manuscript page appears twice: once as the original scan (non_flipped) and once rotated 180° (flipped). The model's task is to distinguish these two orientations. Scripts are balanced — each of the 7 script families contributes the same number of pages (downsampled to the smallest family). Script (script)… See the full description on the dataset page: https://huggingface.co/datasets/BDRC/tibetan-page-orientation-classifier-dataset.

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes311downloads
Dataset Card

Tibetan Page Orientation Dataset

Covers 7 Tibetan script families: Danyig, Druma, Gyuyig, Multi-Scripts, Pedri, Tsugdri, Uchen.

Dataset composition

Each manuscript page appears twice: once as the original scan (non_flipped) and once rotated 180° (flipped). The model's task is to distinguish these two orientations.

Scripts are balanced — each of the 7 script families contributes the same number of pages (downsampled to the smallest family).

Script (`script`)train pagesval pagestest pagestotal pagestotal images
Danyig48861616101,220
Druma48861616101,220
Gyuyig48861616101,220
Multi-Scripts48861616101,220
Pedri48861616101,220
Tsugdri48861616101,220
Uchen48861616101,220

Splits

Manuscript-stratified 80/10/10 split: each manuscript work appears in exactly one of train / val / test (no data leakage across splits).

SplitPagesImagesManuscripts
train3,4166,8321,798
validation427854214
test427854226
Total4,2708,540

Page-level split manifest: `splits/split.json`.

Split policy: work_hash_balanced — manuscript leaks: train↔val 0; train↔test 0; val↔test 0.

Parquet schema

ColumnTypeValues
idstringW123-I456__non_flipped or W123-I456__flipped
image_bytesbinaryJPEG page image
classstringnon_flipped (label 0) or flipped (label 1)
scriptstringParent script family (e.g. Uchen, Druma, Multi-Scripts)

Shards: train/train-*.parquet, val/val-*.parquet, test/test-*.parquet. Train rows are shuffled — non_flipped and flipped images from all scripts are interleaved rather than grouped by page or class.

See `split_stats.json` and `split_stats.md` for row-level counts.

Load in Python

python
from datasets import load_dataset

ds = load_dataset("BDRC/dinov3-binary-page-orientation-dataset")
train = ds["train"]       # 6,832 images (3,416 pages × 2)
val   = ds["validation"]  # 854 images
test  = ds["test"]        # 854 images
python
from io import BytesIO
from PIL import Image

row = train[0]
img = Image.open(BytesIO(row["image_bytes"])).convert("RGB")
print(row["id"])     # e.g. W123-I456__non_flipped
print(row["class"])  # non_flipped or flipped
print(row["script"]) # e.g. Uchen

Train a model

bash
python experiments/flip_classifier/train.py \
  --hf-dataset BDRC/dinov3-binary-page-orientation-dataset

Citation

bibtex
@misc{bdrcpageorientation,
  title  = {Tibetan Page Orientation Dataset},
  author = {Buddhist Digital Resource Center and OpenPecha},
  year   = {2026},
  url    = {https://huggingface.co/datasets/BDRC/tibetan-page-orientation-classifier-dataset},
  note   = {Images from BDRC}
}

License

Images taken from the open access collection of the Buddhist Digital Resource Center. Not all images are in the public domain, some are from recent publications possibly under copyright. We provide the images under the Fair Use copyright exception, but any reuse of this dataset will have to be based on a copyright analysis. We provide the classification data under the CC0 1.0 Universal (Public Domain Dedication).

Acknowledgements

All images are provided by the Buddhist Digital Resource Center (BDRC). This dataset was developed by Dharmaduta from specifications provided by BDRC for the project "The BDRC Etext Corpus", with funding from the Khyentse Foundation. [Buddhist Digital Resource Center](https://www.bdrc.io) (BDRC). Developed by Dharmaduta / OpenPecha.