Instructions to use juliozhao/DocLayout-YOLO with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use juliozhao/DocLayout-YOLO 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("juliozhao/DocLayout-YOLO", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: unknown
|
| 3 |
+
library_name: ultralytics
|
| 4 |
+
---
|
| 5 |
+
|
| 6 |
+
# DocLayout-YOLO checkpoints
|
| 7 |
+
|
| 8 |
+
Checkpoints produced by the DocLayout-YOLO release training pipeline (YOLOv12-based document layout analysis), uploaded from the verified release workspace.
|
| 9 |
+
|
| 10 |
+
## Pretrained models
|
| 11 |
+
|
| 12 |
+
Trained on Docsynth1M+DocBank pretraining data. **File naming note: the X-size checkpoint is `epoch40.pt`; all other sizes are `epoch30.pt`.** The embedded detection head is the 11-class pretraining head; when fine-tuning on a benchmark, Ultralytics rebuilds the head to the dataset nc (D4LA 27 / M6Doc 74 / HJDataset, PRIMA-LAD 11) and transfers backbone weights.
|
| 13 |
+
|
| 14 |
+
## Downstream checkpoints
|
| 15 |
+
|
| 16 |
+
Under `downstream/`: checkpoints fine-tuned on the four public benchmarks (D4LA / M6Doc / HJDataset / PRIMA-LAD) at five sizes (n/s/m/l/x).
|
| 17 |
+
|
| 18 |
+
## SHA256 (first 16 hex chars)
|
| 19 |
+
|
| 20 |
+
| repo path | sha256 (16) | size (MB) |
|
| 21 |
+
|---|---|---|
|
| 22 |
+
| `DocLayout-YOLO-pretrain-N.pt` | `178a9ff51e3cd848` | 9.6 |
|
| 23 |
+
| `DocLayout-YOLO-pretrain-S.pt` | `f203c9d02740a549` | 35.8 |
|
| 24 |
+
| `DocLayout-YOLO-pretrain-M.pt` | `bfbec6286ef2f659` | 79.3 |
|
| 25 |
+
| `DocLayout-YOLO-pretrain-L.pt` | `da336fad052f7ff2` | 107.0 |
|
| 26 |
+
| `DocLayout-YOLO-pretrain-X.pt` | `fe0d4daef3d14c8a` | 238.6 |
|
| 27 |
+
| `downstream/D4LA/n_DocLayout-YOLO.pt` | `ddc1189beed91e27` | 5.0 |
|
| 28 |
+
| `downstream/D4LA/s_DocLayout-YOLO.pt` | `a1d0f8efe22580f3` | 18.2 |
|
| 29 |
+
| `downstream/D4LA/m_DocLayout-YOLO.pt` | `ecff5e042e03626b` | 39.9 |
|
| 30 |
+
| `downstream/D4LA/l_DocLayout-YOLO.pt` | `826ec4281d1064a2` | 53.9 |
|
| 31 |
+
| `downstream/D4LA/x_DocLayout-YOLO.pt` | `fa1d38605ee26115` | 119.8 |
|
| 32 |
+
| `downstream/M6Doc/n_DocLayout-YOLO.pt` | `62e3c9352a050769` | 5.0 |
|
| 33 |
+
| `downstream/M6Doc/s_DocLayout-YOLO.pt` | `7ce579090a2a0d51` | 18.1 |
|
| 34 |
+
| `downstream/M6Doc/m_DocLayout-YOLO.pt` | `e0b3f0356ed4bb6e` | 40.0 |
|
| 35 |
+
| `downstream/M6Doc/l_DocLayout-YOLO.pt` | `f4cf7b8e56978ade` | 53.9 |
|
| 36 |
+
| `downstream/M6Doc/x_DocLayout-YOLO.pt` | `bddd9e3ebb10a412` | 119.8 |
|
| 37 |
+
| `downstream/HJDataset/n_DocLayout-YOLO.pt` | `1099870f0b82c01f` | 5.0 |
|
| 38 |
+
| `downstream/HJDataset/s_DocLayout-YOLO.pt` | `6044020c8f13d5de` | 18.2 |
|
| 39 |
+
| `downstream/HJDataset/m_DocLayout-YOLO.pt` | `65cf6375760cb08b` | 39.9 |
|
| 40 |
+
| `downstream/HJDataset/l_DocLayout-YOLO.pt` | `5878bc467353c810` | 53.9 |
|
| 41 |
+
| `downstream/HJDataset/x_DocLayout-YOLO.pt` | `7dd575f4115537ea` | 119.7 |
|
| 42 |
+
| `downstream/PRIMA-LAD/n_DocLayout-YOLO.pt` | `f21f9a798a021374` | 5.0 |
|
| 43 |
+
| `downstream/PRIMA-LAD/s_DocLayout-YOLO.pt` | `4e9177b75a3c825c` | 18.2 |
|
| 44 |
+
| `downstream/PRIMA-LAD/m_DocLayout-YOLO.pt` | `1fcccb0f9273d83a` | 39.9 |
|
| 45 |
+
| `downstream/PRIMA-LAD/l_DocLayout-YOLO.pt` | `38fb188c3567d033` | 53.9 |
|
| 46 |
+
| `downstream/PRIMA-LAD/x_DocLayout-YOLO.pt` | `d79b8c6f9af4e47a` | 119.7 |
|
| 47 |
+
|
| 48 |
+
## Verification
|
| 49 |
+
|
| 50 |
+
All 20 combinations of 4 benchmarks x 5 sizes passed a bounded training-chain smoke test on real data (2026-09, 8xH200): 32 real optimizer updates, all-finite loss/grad/params, correct scale and nc transfer, zero source-data mutation. Full report: `training_smoke_matrix.csv` in the release workspace.
|