chocochip119/hazard
Updated • 25 • 1
How to use chocochip119/wardy-m05-hazard-detector with ultralytics:
# Couldn't find a valid YOLO version tag.
# Replace XX with the correct version.
from ultralytics import YOLOvXX
model = YOLOvXX.from_pretrained("chocochip119/wardy-m05-hazard-detector")
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)A YOLO11n-based object detection model trained to detect potentially hazardous objects in indoor environments.
| ID | Class |
|---|---|
| 0 | scissors |
| 1 | knife |
| 2 | cutter |
| 3 | syringe |
.ptweights/best.pt| Revision | Training epochs | Best mAP50 | Best mAP50-95 |
|---|---|---|---|
hazard-objects-v1-full-v1 |
100 | 0.8681 | 0.6555 |
hazard-objects-v2-finetune-v1 |
11 | 0.7721 | 0.5359 |
hazard-objects-v2-finetune-v1-extend20 |
20 | 0.8260 | 0.6409 |
hazard-objects-v2-finetune-v2 |
30 | 0.8322 | 0.6388 |
hazard-objects-v2-finetune-v2-extend20 |
8 | 0.8211 | 0.6202 |
hazard-objects-v2-finetune-v3 |
40 | 0.8381 | 0.6113 |
hazard-objects-c270-finetune-v1 |
20 | 0.8348 | 0.6382 |
The metrics above are taken from the epoch with the highest validation mAP50-95 in each run. Direct comparison requires evaluation on the same fixed test set.
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
weight_path = hf_hub_download(
repo_id="chocochip119/wardy-m05-hazard-detector",
filename="weights/best.pt",
revision="main",
)
model = YOLO(weight_path)
results = model.predict(
source="example.jpg",
imgsz=640,
conf=0.25,
save=True,
)
A distribution license has not yet been specified. Verify the licenses and usage conditions of the model, base model, and training data before use or redistribution.