Downloads · 30 days
25
45% of all-time downloads
dronefreak/hrp4k-yolov8n
hrp4k-yolov8n is a object detection model from dronefreak. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as agpl-3.0.
Fine-tuned YOLOv8n object detector on the HRP4K benchmark dataset, trained and evaluated as part of DetectionBench -- a framework for reproducibly benchmarking modern object detectors with identical training recipes a…
Downloads · 30 days
25
45% of all-time downloads
All-time downloads
55
Public
Repo size
8.7 MB
Likes
0
Public
Click a slice to open those files.
.pt6.5 MB · 80%
From the Hugging Face model README
Fine-tuned YOLOv8n object detector on the HRP4K benchmark dataset, trained and evaluated as part of DetectionBench -- a framework for reproducibly benchmarking modern object detectors with identical training recipes and evaluation metrics across multiple real-world datasets.
<p align="center"> <img src="hrp4k_yolov8n_showcase.jpg" alt="HRP4K Detection Demo" width="900"> </p> <br> <!-- ROW 1: Identity & Tech Stack --> <div style="display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;"> <img src="https://img.shields.io/badge/Task-Object_Detection-blue?style=flat-square" alt="Task"> <img src="https://img.shields.io/badge/Framework-Ultralytics_YOLO-0aa1a7?style=flat-square" alt="Framework"> <img src="https://img.shields.io/badge/Base_Model-YOLOv8n-purple?style=flat-square" alt="Base Model"> </div> <!-- ROW 2: Performance Metrics --> <div style="display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap;"> <img src="https://img.shields.io/badge/[email protected]%25-success?style=flat-square" alt="mAP@50"> <img src="https://img.shields.io/badge/mAP@50:95-26.24%25-orange?style=flat-square" alt="mAP@50:95"> <img src="https://img.shields.io/badge/Params-3.2M-lightgrey?style=flat-square" alt="Params"> </div> <!-- ROW 3: Metadata --> <div style="display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;"> <img src="https://img.shields.io/badge/License-AGPL--3.0-lightgrey?style=flat-square" alt="License"> <a href="https://github.com/dronefreak/DetectionBench"><img src="https://img.shields.io/badge/Source-DetectionBench-black?style=flat-square" alt="Source"></a> </div>pip install ultralytics huggingface_hub
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
weights = hf_hub_download(
repo_id="dronefreak/hrp4k-yolov8n",
filename="best.pt"
)
model = YOLO(weights)
results = model.predict(
source="image.jpg",
conf=0.25
)
results[0].show()
Evaluated on the HRP4K test split, using DetectionBench's standard evaluation pipeline (detectionbench-evaluate).
| Metric | Score (%) |
|---|---|
| mAP@50 | 48.58 |
| mAP@50-95 | 26.24 |
| Precision | 58.0 |
| Recall | 46.58 |
| F1 Score | 51.67 |
| Parameters | 3.2M |
| FLOPs | 8.7B (at 640 px) |
Every model DetectionBench has trained and evaluated on HRP4K so far, for full transparency -- see DetectionBench for the smaller, curated comparison set used on the project README.
| Model | mAP@50 | mAP@50-95 | Precision | Recall |
|---|---|---|---|---|
| RF-DETR Small | 56.04 | 31.54 | 62.01 | 55.48 |
| RF-DETR Medium | 55.66 | 31.81 | 64.25 | 51.9 |
| RF-DETR Nano | 52.06 | 28.62 | 62.03 | 47.88 |
| YOLO26m | 51.62 | 29.83 | 57.33 | 49.89 |
| YOLO26s | 48.65 | 27.16 | 60.04 | 46.91 |
| YOLOv8n | 48.58 | 26.24 | 58.0 | 46.58 |
| YOLOv8s | 47.59 | 26.71 | 59.81 | 44.3 |
| YOLOv8m | 47.26 | 26.77 | 59.56 | 44.52 |
| Class | mAP@50 | mAP@50-95 |
|---|---|---|
| pothole | 48.58 | 26.24 |

This model was trained on HRP4K. For the full dataset description, provenance, license, and citation, see the dataset card:
https://huggingface.co/datasets/dronefreak/HRP4K
| Setting | Value |
|---|---|
| Dataset | HRP4K |
| Framework | Ultralytics YOLO |
| Training Toolkit | DetectionBench |
| Epochs (configured max) | 150 |
| Epochs (actually trained) | 86 |
| Early Stopping Patience | 30 |
| Batch Size | auto (Ultralytics AutoBatch) |
| Image Size | 1536 |
| Optimizer | AdamW |
| Initial Learning Rate | 0.001 |
| Seed | 0 |
best.pt
results.csv
args.yaml
BoxPR_curve.png
BoxF1_curve.png
BoxP_curve.png
BoxR_curve.png
confusion_matrix.png
confusion_matrix_normalized.png
val_batch0_pred.jpg
hrp4k_yolov8n_showcase.jpg
README.md
This model was trained using DetectionBench, an open-source framework for benchmarking object detectors across multiple real-world datasets with a common pipeline.
Features include:
If you find this model useful, please consider starring the repository.
train.json references 4,203 images, but the released archive ships only 2,286 of them, so the training set here is 2,286 images with 2,790 boxes (the validation and test splits are complete at 900 images each).pothole, with only about 1.2 boxes per image, and roughly a third of the images in every split contain no pothole at all (789 of 2,286 train, 300 of 900 valid, 300 of 900 test). Those empty test frames mean a false positive on a clean road directly lowers precision.If you use this model in your research, please consider citing the dataset and the model architecture:
@article{chen2026hrp4k,
title={A high-resolution perspective-view road image dataset for pothole detection},
author={Chen, Hanshen and Tu, Zhoulin and Zhao, Yu and Ye, Jianfeng},
journal={Scientific Data},
volume={13},
pages={961},
year={2026},
doi={10.1038/s41597-026-07317-w}
}
No official YOLOv8 research paper has been published by Ultralytics; this is their own recommended software citation instead:
@software{jocher2023yolov8,
author = {Glenn Jocher and Ayush Chaurasia and Jing Qiu},
title = {Ultralytics YOLOv8},
version = {8.0.0},
year = {2023},
url = {https://github.com/ultralytics/ultralytics},
license = {AGPL-3.0}
}