Object Detection
ultralytics
Tibetan
yolo
yolo26
tibetan
document-layout-analysis
bounding-box
BDRC
Eval Results (legacy)
Run this model with HF Jobs
Run BDRC/Tibetan_Modern_Book_Layout_Detection_Model on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/BDRC/Tibetan_Modern_Book_Layout_Detection_Model. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/BDRC/Tibetan_Modern_Book_Layout_Detection_Model on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use BDRC/Tibetan_Modern_Book_Layout_Detection_Model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use BDRC/Tibetan_Modern_Book_Layout_Detection_Model with ultralytics:
from huggingface_hub import hf_hub_download from ultralytics import YOLO # pick the weights file from this repo's "Files and versions" tab weights = hf_hub_download("BDRC/Tibetan_Modern_Book_Layout_Detection_Model", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files123---license: cc0-1.0---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212---library_name: ultralyticstask: object-detectiontags:- yolo- yolo26- tibetan- document-layout-analysis- object-detection- bounding-box- BDRClanguage:- bolicense: cc0-1.0datasets:- BDRC/TDLA-Training-Datasetmetrics:- mAP50- mAP50-95- precision- recallmodel-index:- name: TDLA-YOLO26mresults:- task:type: object-detectionname: Object Detectiondataset:type: BDRC/TDLA-Training-Datasetname: TDLA Training Datasetsplit: valmetrics:- type: mAP50value: 0.982name: mAP@0.5- type: mAP50-95value: 0.799name: mAP@0.5:0.95- type: precisionvalue: 0.966name: Precision- type: recallvalue: 0.970name: Recall---# TDLA-YOLO26m — Tibetan Document Layout AnalysisA fine-tuned **YOLO26m** object-detection model for **Tibetan Document Layout Analysis (TDLA)**. The model detects four layout classes in Tibetan document page images: **header**, **Text area**, **footnote**, and **footer**.## Model DescriptionThis model was fine-tuned from the Ultralytics YOLO26m pretrained checkpoint on the [BDRC/TDLA-Training-Dataset](https://huggingface.co/datasets/BDRC/TDLA-Training-Dataset), a YOLO-format bounding-box dataset of Tibetan document pages sourced from the Buddhist Digital Resource Center (BDRC) digital library.| Property | Value || --- | --- || **Architecture** | YOLO26m || **Task** | Object Detection || **Image size** | 640 × 640 || **Number of classes** | 4 || **Training platform** | Ultralytics HUB || **Weights file** | `Tibetan_modern_book_Layout_detection.pt` |## Classes| ID | Class | Description || --- | --- | --- || 0 | header | Page header region || 1 | Text area | Main body text region || 2 | footnote | Footnote region || 3 | footer | Page footer region |## PerformanceEvaluated on the validation split of the TDLA Training Dataset.| Metric | Value || --- | --- || **Precision** | 0.966 || **Recall** | 0.970 || **mAP@0.5** | 0.982 || **mAP@0.5:0.95** | 0.799 |### Training Loss (final epoch)| Loss Component | Train | Val || --- | --- | --- || Box loss | 0.515 | 0.643 || Classification loss | 0.218 | 0.276 || DFL loss | 0.003 | 0.004 |## Training Details### Dataset- **Dataset:** [BDRC/TDLA-Training-Dataset](https://huggingface.co/datasets/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| Parameter | Value || --- | --- || Epochs | 150 || Patience | 100 || Batch size | Auto (-1) || Image size | 640 || Optimizer | Auto (SGD) || Initial learning rate (lr0) | 0.01 || Final learning rate factor (lrf) | 0.01 || Momentum | 0.937 || Weight decay | 0.0005 || Warmup epochs | 3.0 || Warmup momentum | 0.8 || Warmup bias lr | 0.1 || AMP (mixed precision) | True || Pretrained | True || Deterministic | True || Seed | 0 |### Loss Weights| Component | Weight || --- | --- || Box | 7.5 || Classification | 0.5 || DFL | 1.5 |### Augmentation| Augmentation | Value || --- | --- || HSV-Hue | 0.015 || HSV-Saturation | 0.7 || HSV-Value | 0.4 || Translation | 0.1 || Scale | 0.5 || Flip left-right | 0.5 || Mosaic | 1.0 || Erasing | 0.4 || Close mosaic (last N epochs) | 10 || Auto augment | RandAugment |## Usage### Inference with Ultralytics```pythonfrom ultralytics import YOLOmodel = YOLO("Tibetan_modern_book_Layout_detection.pt")results = model.predict("page_image.jpg", imgsz=640)for result in results:boxes = result.boxesfor 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```pythonfrom ultralytics import YOLOmodel = YOLO("Tibetan_modern_book_Layout_detection.pt")results = model.predict("path/to/images/", imgsz=640, conf=0.25)```## Intended UseThis 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.## LicenseThis 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.## AcknowledgementsThis 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.## CitationIf you use this model, please cite the dataset:```bibtex@dataset{bdrc_tdla_2025,title = {TDLA Training Dataset},author = {Buddhist Digital Resource Center (BDRC)},year = {2025},url = {https://huggingface.co/datasets/BDRC/TDLA-Training-Dataset},license = {CC0-1.0}}```
README.md+209