CoolFace
Modelpublic

BDRC/Tibetan_Modern_Book_Layout_Detection_Model

sourceHugging Facecc0-1.0updated 4mo agoView on Hugging Face
0likes11downloads
Model Card

TMBLD-YOLO26m — Tibetan Modern book layout dection

A fine-tuned YOLO26m object-detection model for Tibetan Modern book layout dection. The model detects four layout classes in Tibetan modern book page images: header, Text area, footnote, and footer.

Model Description

This model was fine-tuned from the Ultralytics YOLO26m pretrained checkpoint on the BDRC/TDLA-Training-Dataset, a YOLO-format bounding-box dataset of Tibetan document pages sourced from the Buddhist Digital Resource Center (BDRC) digital library.

PropertyValue
ArchitectureYOLO26m
TaskObject Detection
Image size640 × 640
Number of classes4
Training platformUltralytics HUB
Weights fileTibetan_modern_book_Layout_detection.pt

Classes

IDClassDescription
0headerPage header region
1Text areaMain body text region
2footnoteFootnote region
3footerPage footer region

Performance

Evaluated on the validation split of the TDLA Training Dataset.

MetricValue
Precision0.966
Recall0.970
mAP@0.50.982
mAP@0.5:0.950.799

Training Loss (final epoch)

Loss ComponentTrainVal
Box loss0.5150.643
Classification loss0.2180.276
DFL loss0.0030.004

Training Details

Dataset

  • Dataset: BDRC/TDLA-Training-Dataset
  • Train images: 2,692
  • Val images: 103
  • Test images: 313
  • Total annotations: 14,705
  • Train/Val split: Iterative multi-label stratification (seed 42, 80/20 ratio)

Hyperparameters

ParameterValue
Epochs150
Patience100
Batch sizeAuto (-1)
Image size640
OptimizerAuto (SGD)
Initial learning rate (lr0)0.01
Final learning rate factor (lrf)0.01
Momentum0.937
Weight decay0.0005
Warmup epochs3.0
Warmup momentum0.8
Warmup bias lr0.1
AMP (mixed precision)True
PretrainedTrue
DeterministicTrue
Seed0

Loss Weights

ComponentWeight
Box7.5
Classification0.5
DFL1.5

Augmentation

AugmentationValue
HSV-Hue0.015
HSV-Saturation0.7
HSV-Value0.4
Translation0.1
Scale0.5
Flip left-right0.5
Mosaic1.0
Erasing0.4
Close mosaic (last N epochs)10
Auto augmentRandAugment

Usage

Inference with Ultralytics

python
from ultralytics import YOLO

model = YOLO("Tibetan_modern_book_Layout_detection.pt")

results = model.predict("page_image.jpg", imgsz=640)

for result in results:
    boxes = result.boxes
    for box in boxes:
        cls_id = int(box.cls)
        conf = float(box.conf)
        xyxy = box.xyxy[0].tolist()
        print(f"Class: {cls_id}, Confidence: {conf:.3f}, Box: {xyxy}")

Batch Inference

python
from ultralytics import YOLO

model = YOLO("Tibetan_modern_book_Layout_detection.pt")

results = model.predict("path/to/images/", imgsz=640, conf=0.25)

Intended Use

This model is designed for automatic layout detection of modern Tibetan book pages. It can be used as a preprocessing step for:

  • OCR pipelines on Tibetan documents
  • Document digitization workflows
  • Structured text extraction from scanned Tibetan texts
  • Digital library cataloging and indexing

Limitations

  • Trained primarily on modern Tibetan book layouts; performance on historical manuscripts, woodblock prints, or non-standard layouts may vary.
  • Optimized for 640×640 input resolution; very high-resolution pages may benefit from tiling or higher imgsz values.
  • The footnote class has fewer training samples (456 annotations) compared to other classes, which may affect detection quality for that class.

License

This model is released under the CC0 1.0 Universal (Public Domain Dedication). You are free to copy, modify, and distribute the model, even for commercial purposes, without asking permission.

Acknowledgements

This dataset was developed by Dharmaduta from specifications provided by the Buddhist Digital Resource Center (BDRC) for the BDRC Etext Corpus, with funding from the Khyentse Foundation.

Citation

If you use this model, please cite the dataset:

bibtex
@software{bdrc_tmbld_yolo26m_2026,
  title   = {tmbld-YOLO26m: Tibetan Modern book layout detection Model},
  author  = {Buddhist Digital Resource Center (BDRC)},
  year    = {2026},
  url     = {https://huggingface.co/BDRC/TDLA-YOLO26m},
  license = {CC0-1.0}
}