nielsr's picture
nielsr HF Staff
Add pipeline tag and improve model card
8e964ff verified
|
Raw History Blame
923 Bytes
---
datasets:
- juliozhao/doclayout-yolo-DocLayNet
license: apache-2.0
pipeline_tag: object-detection
---
# DocLayout-YOLO
This model is a real-time document layout detector introduced in the paper [DocLayout-YOLO: Axis-Attentive Document Layout Detector with Mesh-Guided Synthetic Pretraining](https://huggingface.co/papers/2410.12628). It is based on YOLOv10 and is enhanced with diverse synthetic document pretraining and page-axis context modeling. The model can detect various document elements such as text, titles, figures, tables, etc.
For usage, please refer to the [GitHub repository](https://github.com/opendatalab/DocLayout-YOLO/tree/release-v2).
An example of loading the model:
```python
from doclayout_yolo import YOLOv10
model = YOLOv10.from_pretrained("juliozhao/DocLayout-YOLO-DocStructBench")
# Perform prediction
det_res = model.predict("path/to/image", imgsz=1024, conf=0.2, device="cuda:0")
```