tuandunghcmut/doclaynet-yolo26l
065
doclaynet-yolo26l โ Document Layout Analysis
A YOLO26-Large model fine-tuned on DocLayNet v1.2 for Document Layout Analysis (DLA). It detects 10 semantic layout element types across diverse document styles (financial reports, patents, scientific papers, laws, manuals, and more).
๐ Try it live: doclaynet-yolo26l-demo Space
โ ๏ธ Class Index Note
The docling-project/DocLayNet-v1.2 HuggingFace dataset uses 1-indexed category_id values (1=Caption โฆ 11=Title). The training script stored these directly as YOLO label indices without subtracting 1. As a result:
- YOLO class 0 (
unknown) โ never appeared in any label; output is unreliable - YOLO class 1โ10 โ Caption, Footnote, Formula, List-item, Page-footer, Page-header, Picture, Section-header, Table, Text
- Title (category_id=11) โ was skipped during dataset preparation; this checkpoint does not detect Titles
The model weights, class names in the checkpoint, and this card have all been corrected to reflect the true mapping. Retraining with the fixed prepare_dataset.py (which now subtracts 1) will recover the Title class.
Model Details
Test Set Evaluation (DocLayNet v1.2 โ test split, 4 999 images)
Evaluated withconf=0.001,iou=0.5,imgsz=1024. Class names corrected to reflect actual training data mapping.
Overall Metrics
Per-Class AP@50 (corrected class names)
Classes
Training Configuration
Usage
from ultralytics import YOLO
model = YOLO("tuandunghcmut/doclaynet-yolo26l")
results = model.predict(
source="your_document.jpg",
imgsz=1024,
conf=0.25,
iou=0.7,
line_width=1,
)
results[0].show()Citation
@article{doclaynet2022,
title = {DocLayNet: A Large Human-Annotated Dataset for Document-Layout Segmentation},
author = {Pfitzmann, Birgit and Auer, Christoph and Dolfi, Michele and Nassar, Ahmed S and Staar, Peter},
booktitle = {Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
year = {2022}
}