ONNX Model Zoo

UniParser/MolDetv2

By UniParser · ↓ 0 · ♥ 8 · Updated 2026-03-17

What's in this repo

This page lists the files in UniParser/MolDetv2, including moldet_v2_yolo11n_640_general.onnx, moldet_v2_yolo11n_960_doc.onnx.

  • 2 ONNX models (.onnx files)
  • 6 files, including 2 .onnx, 2 .pt, 1 .md
  • Last updated 2026-03-17

ONNX files

File Size Download
moldet_v2_yolo11n_640_general.onnx — Download
moldet_v2_yolo11n_960_doc.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

MolDetv2: A Smaller, Faster, and More Powerful Molecular Detection Model

Compared to MolDet, our new MolDetv2 model leverages more manually annotated training data, with further optimizations specifically for reducing molecular false detections and improving bounding box regression, achieving stronger performance with a smaller model.

[MolDet-General] universal molecule structure detection

YOLO11-n weights trained on more than 100k human annotated image crops & synthesis molecule images.

image

features:

  • 640x640 input resolution
  • support handwritten molecules detection
  • multiscale input (inputs can be single/multiple molecular cutouts, reaction or table cutouts, or single-page PDF images)
  • update: MolDetv2 substantially reduces false positives on formulas, ball-and-stick diagrams, etc.

usage:

from ultralytics import YOLO
model = YOLO("/path/to/moldet_v2_yolo11n_640_general.pt") # for cpu only inference: using `moldet_v2_yolo11n_640_general.onnx` for faster speed
model.predict("path/to/image.png", save=True, imgsz=640, conf=0.5)

For further usage instructions, please refer to the official Ultralytics documentation.

[MolDet-Doc] document molecule structure detection

YOLO11-n weights trained on more than 60k human annotated PDF pages (patents, papers, and books) and 10k synthesis PDF pages with molecule images.

image

features:

  • 960x960 input resolution
  • prefer single page PDF image input
  • better in small molecule detection
  • update: MolDetv2 substantially reduces false positives on formulas, ball-and-stick diagrams, and graphical symbols, with tighter bounding box alignment to molecular edges.

usage:

from ultralytics import YOLO
import fitz # MuPDF
pdf = fitz.open("doc.pdf")
model = YOLO("/path/to/moldet_v2_yolo11n_960_doc.pt")  # for cpu only inference: using `moldet_v2_yolo11n_960_doc.onnx` for faster speed
bboxes = []
for i, p in enumerate(pdf):
    img = f"page_{i}.png"; p.get_pixmap().save(img)
    for r in model.predict(img, imgsz=960, conf=0.5):
        for box in r.boxes:
            bboxes.append({"page":img, "conf":float(box.conf), "bbox":box.xyxy[0].tolist()})

For further usage instructions, please refer to the official Ultralytics documentation.

📊 BenchMark Results

Please refer to MolDet-Bench

🔍 Demo

MolDetv2 Gradio Demo

📜 License

MolDet & MolDetv2 model weights are provided for non-commercial use only.

For commercial use, please contact: fangxi@dp.tech or add a discussion in HuggingFace.

📖 Citation

If you use this model in your work, please cite:

Comming soon!

Model info

onnx chemistry dataset:UniParser/MolDet-Bench base_model:Ultralytics/YOLO11 base_model:quantized:Ultralytics/YOLO11 license:cc-by-nc-sa-4.0 region:us
↓ 0 ♥ 8

Created: 2025-11-14

Updated: 2026-03-17

View on Hugging Face

Files (6)

.gitattributes
README.md
moldet_v2_yolo11n_640_general.onnx ONNX
moldet_v2_yolo11n_640_general.pt
moldet_v2_yolo11n_960_doc.onnx ONNX
moldet_v2_yolo11n_960_doc.pt

Related models