Instructions to use dronefreak/bdd100k-yolov8s with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use dronefreak/bdd100k-yolov8s with ultralytics:
# Couldn't find a valid YOLO version tag. # Replace XX with the correct version. from ultralytics import YOLOvXX model = YOLOvXX.from_pretrained("dronefreak/bdd100k-yolov8s") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
YOLOv8s Finetuned on BDD100K
Fine-tuned YOLOv8s object detector on the BDD100K 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.
Usage
Install Dependencies
pip install ultralytics huggingface_hub
Load Model from Hugging Face
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
weights = hf_hub_download(
repo_id="dronefreak/bdd100k-yolov8s",
filename="best.pt"
)
model = YOLO(weights)
Run Inference
results = model.predict(
source="image.jpg",
conf=0.25
)
results[0].show()
Performance
Evaluated on the BDD100K test split, using DetectionBench's standard evaluation pipeline (detectionbench-evaluate).
| Metric | Score (%) |
|---|---|
| mAP@50 | 57.93 |
| mAP@50-95 | 33.25 |
| Precision | 75.38 |
| Recall | 51.63 |
| F1 Score | 61.29 |
| Parameters | 11.2M |
| FLOPs | 28.6B (at 640 px) |
BDD100K Model Zoo
Every model DetectionBench has trained and evaluated on BDD100K 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 |
|---|---|---|---|---|
| YOLO26s | 58.76 | 33.86 | 75.49 | 53.07 |
| YOLOv8s | 57.93 | 33.25 | 75.38 | 51.63 |
| YOLOv10s | 57.64 | 33.34 | 75.02 | 52.12 |
| YOLO11s | 57.63 | 33.1 | 74.31 | 52.42 |
| RF-DETR Nano | 56.9 | 31.58 | 80.68 | 64.78 |
| YOLO26n | 52.25 | 29.23 | 72.56 | 46.87 |
| YOLOv9t | 52.04 | 29.46 | 71.34 | 46.72 |
| YOLOv10n | 51.95 | 29.31 | 71.58 | 46.62 |
| YOLOv8n | 51.67 | 29.09 | 70.95 | 46.59 |
| YOLO11n | 51.63 | 29.06 | 71.68 | 46.34 |
Per-Class Performance
| Class | mAP@50 | mAP@50-95 |
|---|---|---|
| person | 68.66 | 35.81 |
| rider | 49.98 | 25.82 |
| car | 82.76 | 51.63 |
| truck | 67.84 | 49.79 |
| bus | 65.96 | 51.43 |
| train | 0.21 | 0.13 |
| motor | 49.06 | 23.65 |
| bike | 51.68 | 26.9 |
| traffic light | 69.54 | 27.44 |
| traffic sign | 73.59 | 39.89 |
Dataset
This model was trained on BDD100K. For the full dataset description, provenance, license, and citation, see the dataset card:
https://huggingface.co/datasets/dronefreak/BDD100K
Classes
- person
- rider
- car
- truck
- bus
- train
- motor
- bike
- traffic light
- traffic sign
Training Configuration
| Setting | Value |
|---|---|
| Dataset | BDD100K |
| Framework | Ultralytics YOLO |
| Training Toolkit | DetectionBench |
| Epochs (configured max) | 50 |
| Epochs (actually trained) | 50 |
| Early Stopping Patience | 10 |
| Batch Size | auto (Ultralytics AutoBatch) |
| Image Size | 960 |
| Optimizer | SGD |
| Initial Learning Rate | 0.01 |
| Seed | 0 |
Repository Contents
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
bdd100k_yolov8s_showcase.jpg
assets/demo_banner.mp4
assets/demo_banner_poster.jpg
README.md
Related Resources
- BDD100K dataset card on Hugging Face
- DetectionBench -- reproducible benchmarks for modern object detectors on real-world datasets
- BDD100K project website (official data source)
Training Framework
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:
- A dataset-adapter registry for converting real-world datasets into a canonical format
- Identical training/evaluation recipes across model families (Ultralytics YOLO/RT-DETR, RF-DETR)
- Hardware profiling (latency, FPS, VRAM, parameters, FLOPs)
- One-command reproducibility via versioned Hydra configs
If you find this model useful, please consider starring the repository.
Known Limitations
- Not comparable to the official BDD100K test-server leaderboard: the official test split has no released labels, so the
testsplit here is BDD100K's official validation set (10,000 images) and a seeded 15% slice of the official train set is held out for validation. - Severe class imbalance:
car(55.4%),traffic sign(18.6%) andtraffic light(14.5%) dominate the boxes, whilerider(0.4%),motor(0.2%) and especiallytrain(about 150 boxes in the whole dataset) are rare -- per-class accuracy on those classes is measured on very few examples and is close to noise fortrain. - Small objects: the median box covers only 0.09% of the 1280x720 frame, and traffic lights and signs are the smallest and hardest classes (medians of roughly 16 px and 21 px at native resolution), so scores on them depend heavily on input resolution.
- Detection labels only: BDD100K's lane-marking and drivable-area annotations are dropped, so these models cover the 2D object detection task only.
- Conditions are not broken down: the images span weather, time-of-day and scene conditions, but scores here are aggregated over all of them, and generalization outside the US road scenes BDD100K covers is untested.
- Non-commercial redistribution only: BDD100K's own data license (reproduced in full on the dataset card) permits redistribution for educational, research and not-for-profit purposes with notice -- commercial use needs separate permission from UC Berkeley's Office of Technology Licensing, not a blanket no-redistribution grant.
- Label vintage is 2018, not the paper's 2020 publication date: the detection labels mirrored here are BDD100K's original 2018 annotation release (matching the data license's own copyright year), carried through a two-hop Kaggle mirror -- see the dataset card for why a separate, later-dated label release couldn't be located or verified.
Citation
If you use this model in your research, please consider citing the dataset and the model architecture:
@inproceedings{yu2020bdd100k,
title={BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learning},
author={Yu, Fisher and Chen, Haofeng and Wang, Xin and Xian, Wenqi and Chen, Yingying and Liu, Fangchen and Madhavan, Vashisht and Darrell, Trevor},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
pages={2636--2645},
year={2020}
}
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}
}
- Downloads last month
- 38
Model tree for dronefreak/bdd100k-yolov8s
Base model
Ultralytics/YOLOv8Dataset used to train dronefreak/bdd100k-yolov8s
Collection including dronefreak/bdd100k-yolov8s
Evaluation results
- mAP@50 (test split) on BDD100KDetectionBench57.930
- mAP@50-95 (test split) on BDD100KDetectionBench33.250
- Precision (test split) on BDD100KDetectionBench75.380
- Recall (test split) on BDD100KDetectionBench51.630
