Helmet Detection with YOLOv8n

A lightweight, real-time object detector for “helmet” vs “no_helmet” built with Ultralytics YOLOv8n. The project includes data download Roboflow, fine-tuning, and evaluation.

Usage

from ultralytics import YOLO
from huggingface_hub import hf_hub_download

repo_id = "iam-tsr/yolov8n-helmet-detection"
filename = "best.pt"

# Load downloaded model
model = YOLO(filename)

# Run inference
result_many = model.predict(
    source="images/image.png",
    save=False,
    show=True,
)

Evaluation

Metric Value
Precision (P) 0.855
Recall (R) 0.808
[email protected] 0.881
[email protected]:0.95 0.538
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for iam-tsr/yolov8n-helmet-detection

Base model

Ultralytics/YOLOv8
Finetuned
(121)
this model