Views
No views yet

1from ultralytics import YOLO
2from huggingface_hub import hf_hub_download
3
4repo_id = "iam-tsr/yolov8n-helmet-detection"
5filename = "best.pt"
6
7# Load downloaded model
8model = YOLO(filename)
9
10# Run inference
11result_many = model.predict(
12 source="images/image.png",
13 save=False,
14 show=True,
15)| Metric | Value |
|---|---|
| Precision (P) | 0.855 |
| Recall (R) | 0.808 |
| mAP@0.5 | 0.881 |
| mAP@0.5:0.95 | 0.538 |