Downloads · 30 days
0
hanmozhang1984/MolDet-v6c
MolDet-v6c is a object detection model from hanmozhang1984. Use it when you need objects located in an image. The card lists the license as mit.
YOLOv11s model fine-tuned for detecting chemical structures (molecules) in pharmaceutical patent pages.
Downloads · 30 days
0
Access
Public
Updated Apr 11, 2026
Repo size
19.2 MB
Likes
0
Public
Click a slice to open those files.
.pt19.2 MB · 100%
From the Hugging Face model README
YOLOv11s model fine-tuned for detecting chemical structures (molecules) in pharmaceutical patent pages.
| ID | Class |
|---|---|
| 0 | molecule |
| 1 | table |
from ultralytics import YOLO
from huggingface_hub import hf_hub_download
weights = hf_hub_download("hanmozhang1984/MolDet-v6c", "best.pt")
model = YOLO(weights)
results = model("patent_page.png", conf=0.25)
for box in results[0].boxes:
cls = int(box.cls[0])
conf = float(box.conf[0])
x1, y1, x2, y2 = box.xyxy[0].tolist()
print(f"Class {cls}, conf {conf:.2f}, box [{x1:.0f}, {y1:.0f}, {x2:.0f}, {y2:.0f}]")