Views
No views yet
| Class | Description |
|---|---|
| D00 | Longitudinal Crack |
| D10 | Transverse Crack |
| D20 | Alligator Crack |
| D40 | Pothole |
| Repair | Repaired Area |
1# Install YOLOv12 ultralytics fork
2# pip install git+https://github.com/sunsmarterjie/yolov12.git
3
4from ultralytics import YOLO
5
6# Load model
7model = YOLO("rezzzq/yolo12s-road-damage-rdd2022")
8# or download and load locally:
9# model = YOLO("yolo12s_RDD2022_best.pt")
10
11# Run inference
12results = model("path/to/road_image.jpg")
13
14# Process results
15for result in results:
16 boxes = result.boxes
17 for box in boxes:
18 cls = int(box.cls[0])
19 conf = float(box.conf[0])
20 print(f"Class: {model.names[cls]}, Confidence: {conf:.2%}")@article{arya2022rdd2022,
title={RDD2022: A multi-national image dataset for automatic Road Damage Detection},
author={Arya, Deeksha and others},
year={2022}
}