Downloads · 30 days
59
14% of all-time downloads
hksorensen/diagram-detector-model
diagram-detector-model is a machine learning model from hksorensen. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for ultralytics. The card lists the license as mit.
High-accuracy diagram detection model for academic papers using YOLO11 architecture.
Downloads · 30 days
59
14% of all-time downloads
All-time downloads
425
Public
Repo size
16.2 MB
Likes
1
Public
Click a slice to open those files.
.pt10.7 MB · 100%
From the Hugging Face model README
High-accuracy diagram detection model for academic papers using YOLO11 architecture.
This model detects diagrams, figures, and illustrations in academic papers. It is trained on mathematical publications with rigorous augmentation to preserve semantic meaning of diagrams.
These thresholds were determined through grid search optimization for best page-level performance.
from diagram_detector import DiagramDetector
# Initialize detector
detector = DiagramDetector(model='diagram-detector-v5')
# Detect diagrams in a PDF
results = detector.detect_pdf('paper.pdf')
# Or detect in images
results = detector.detect('path/to/images/')
@software{diagram_detector_yolo11n_2026,
author = {Sørensen, Henrik Kragh},
title = {Diagram Detector Model v5},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/hksorensen/diagram-detector-model}
}
pip install diagram-detectorModel uploaded: 2026-01-12T19:28:05.111806