SafeVixAI/SafeVixAI-Dataset-Hub
Updated โข 2.75k โข 1
Run SafeVixAI/pothole-detector-yolov8n on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/SafeVixAI/pothole-detector-yolov8n. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/SafeVixAI/pothole-detector-yolov8n on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use SafeVixAI/pothole-detector-yolov8n with ultralytics:
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
# pick the weights file from this repo's "Files and versions" tab
weights = hf_hub_download("SafeVixAI/pothole-detector-yolov8n", "<weights>.pt")
model = YOLO(weights)
source = 'http://images.cocodataset.org/val2017/000000039769.jpg'
model.predict(source=source, save=True)A custom YOLOv8 nano (yolov8n) road damage object detection model trained for the SafeVixAI civic road safety platform (IIT Madras Road Safety Hackathon 2026) and exported to both PyTorch (pothole.pt) and browser/edge-ready ONNX (pothole.onnx).
| Property | Value |
|---|---|
| Base Architecture | Ultralytics YOLOv8n (yolov8n.pt, Ultralytics 8.4.37) |
Classes (nc: 3) |
0: pothole, 1: crack, 2: manhole |
Input Tensor (ONNX) |
images (float32, shape [1, 3, 640, 640], RGB scaled [0, 1]) |
Output Tensor (ONNX) |
output0 (float32, shape [1, 7, 8400], [cx, cy, w, h, cls0, cls1, cls2], nms=False) |
| Artifacts Included | pothole.pt (pothole.onnx (opset=12, simplify=True) |
2,009 merged .jpg images across harmonized labels: D00/D10/D20 mapped to crack, D40 mapped to pothole, plus manhole annotations).epochs=50, imgsz=640, batch=16, exported to ONNX (opset=12, imgsz=640, simplify=True).ultralytics)
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
weights = hf_hub_download("SafeVixAI/pothole-detector-yolov8n", "pothole.pt")
model = YOLO(weights)
results = model("road_sample.jpg", conf=0.25)
results[0].show()
onnxruntime)
import numpy as np
import onnxruntime as ort
from huggingface_hub import hf_hub_download
from PIL import Image
onnx_path = hf_hub_download("SafeVixAI/pothole-detector-yolov8n", "pothole.onnx")
session = ort.InferenceSession(onnx_path)
img = Image.open("road_sample.jpg").convert("RGB").resize((640, 640))
inp = np.transpose(np.asarray(img, dtype=np.float32) / 255.0, (2, 0, 1))[None, ...]
outputs = session.run(None, {"images": inp})[0] # shape: (1, 7, 8400)
PotholeValidator), and edge PWA/demo inference.YOLOv8_Pothole_Detector_Training), validation pointed to the training image split for fast hackathon iteration. Treat confidence scores carefully on unseen lighting/weather conditions and keep human/secondary backend review in production workflows.LICENSE); upstream Ultralytics model export metadata notes Ultralytics AGPL-3.0 for framework usage where applicable.