Instructions to use dronefreak/bdd100k-period-yolov8s-cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use dronefreak/bdd100k-period-yolov8s-cls 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("dronefreak/bdd100k-period-yolov8s-cls", "<weights>.pt") model = YOLO(weights) source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
YOLOv8s Finetuned on BDD100K Period (Time-of-Day) Classification
Fine-tuned YOLOv8s image classifier on the BDD100K Period (Time-of-Day) Classification dataset, trained and evaluated as part of BDD100K-Toolkit, a dependency-clean toolkit for preparing BDD100K, training models on it and evaluating them with the same metrics on the same splits.
4-class time-of-day classification (daytime / night / dawn or dusk / unknown) derived from BDD100K's per-image attributes.timeofday field. Unofficial task; follows the Kaggle dataset of the same name.
Usage
from huggingface_hub import hf_hub_download
from ultralytics import YOLO
model = YOLO(hf_hub_download("dronefreak/bdd100k-period-yolov8s-cls", "best.pt"))
probs = model("street.jpg", verbose=False)[0].probs
print(model.names[probs.top1], f"{float(probs.top1conf):.1%}")
Results
Evaluated on the test split (10000 images).
| Metric | Value |
|---|---|
| Macro F1 | 79.94% |
| Balanced accuracy | 75.66% |
| Macro precision | 86.39% |
| Macro recall | 75.66% |
| Top-1 accuracy | 93.46% |
Per class
| Class | Precision | Recall | F1 | Test images |
|---|---|---|---|---|
| dawn or dusk | 67.81% | 50.64% | 57.98% | 778 |
| daytime | 93.19% | 96.06% | 94.61% | 5258 |
| night | 97.61% | 98.78% | 98.19% | 3929 |
| unknown | 86.96% | 57.14% | 68.97% | 35 (few) |
Model Zoo
All runs below were evaluated on the same test split, sorted by top-1 accuracy.
| Model | Top-1 | Macro F1 | Balanced acc | Macro precision |
|---|---|---|---|---|
| TinyViT-21M | 94.01% | 83.19% | 79.63% | 87.95% |
| EfficientViT-L1 | 93.98% | 82.68% | 78.45% | 88.75% |
| ConvNeXt-Atto | 93.95% | 80.75% | 76.82% | 86.39% |
| EfficientViT-B2 | 93.92% | 82.53% | 78.88% | 87.49% |
| RepViT-M2.3 | 93.89% | 82.35% | 78.49% | 87.72% |
| YOLO11n | 93.79% | 80.13% | 75.19% | 88.20% |
| EfficientViT-B1 | 93.77% | 82.63% | 78.93% | 88.38% |
| EfficientViT-B3 | 93.77% | 81.04% | 76.29% | 88.43% |
| YOLO11s | 93.73% | 81.22% | 77.49% | 86.42% |
| EfficientViT-B0 | 93.71% | 80.98% | 77.14% | 86.44% |
| YOLO26n | 93.61% | 80.41% | 77.72% | 83.88% |
| MobileNetV4-Conv-Small | 93.57% | 80.22% | 76.22% | 86.06% |
| YOLOv8n | 93.56% | 80.85% | 76.26% | 87.87% |
| MobileNetV4-Conv-Large | 93.46% | 80.21% | 74.88% | 89.57% |
| YOLOv8s | 93.46% | 79.94% | 75.66% | 86.39% |
| YOLO26s | 93.36% | 80.10% | 75.74% | 86.84% |
| RepViT-M1.5 | 93.33% | 81.97% | 78.35% | 86.95% |
| ResNet-18 | 93.32% | 80.50% | 76.72% | 85.87% |
| EfficientFormerV2-L | 93.31% | 81.65% | 78.36% | 86.02% |
| EfficientFormerV2-S2 | 93.01% | 80.38% | 76.79% | 85.35% |
Training
| Setting | Value |
|---|---|
| Epochs (max) | 50 |
| Epochs (trained) | 17 |
Best epoch (best.pt) |
7 |
best.pt chosen by |
macro_f1 on the valid split |
| Early stopping patience | 10 |
| Batch size | 128 |
| Image size | 224 |
| Optimizer | auto, resolved to MuSGD(lr=0.01, momentum=0.9) |
| Pretrained | True |
| Seed | 0 |
Dataset
dronefreak/BDD100K-Period-Classification holds the prepared splits these models were trained and evaluated on.
Limitations
- Unofficial task: labels are BDD100K's per-image attributes, not a benchmark with a public leaderboard, so scores are only comparable with other models evaluated on this split.
- Not the official test set:
testhere is BDD100K's official validation split (the official test labels are not released) andvalidis a seeded 15% slice of the official train split. - Heavily imbalanced: rare classes have very few test images, so their per-class scores are noisy. Prefer macro F1 over accuracy.
- Images are US dashcam frames; generalization to other regions or camera setups is untested.
- BDD100K is released for non-commercial research and education. Check its license before any use of these weights beyond research.
dawn or duskis a transitional, subjectively labelled class that sits betweendaytimeandnight.
License
The weights are released under the license in the metadata above. They were trained on BDD100K, which is free for non-commercial research and education; commercial use needs separate permission (see https://www.bdd100k.com/). The prepared dataset on the Hub is tagged license: other, and the original BDD100K terms still apply.
Citation
Model
Ultralytics has not published a YOLOv8 paper; this independent review covers its architecture.
@article{terven2023yolo,
title={A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS},
author={Terven, Juan and Cordova-Esparza, Diana},
journal={arXiv preprint arXiv:2304.00501},
year={2023}
}
Dataset
@article{yu2018bdd100k,
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},
journal={arXiv preprint arXiv:1805.04687},
year={2018}
}
Files
best.ptmetrics.jsonresults.csvresults.pngconfusion_matrix.pngconfusion_matrix_normalized.pngval_batch0_pred.jpgassets/demo_banner.mp4assets/demo_banner_poster.jpgREADME.md
Reproduce
Trained and evaluated with BDD100K-Toolkit: bdd100k-evaluate --dataset bdd100k-period --checkpoint <weights> --data-dir <prepared dir> --split test.
- Downloads last month
- 47
Model tree for dronefreak/bdd100k-period-yolov8s-cls
Base model
Ultralytics/YOLOv8Dataset used to train dronefreak/bdd100k-period-yolov8s-cls
Collections including dronefreak/bdd100k-period-yolov8s-cls
Papers for dronefreak/bdd100k-period-yolov8s-cls
A Comprehensive Review of YOLO Architectures in Computer Vision: From YOLOv1 to YOLOv8 and YOLO-NAS
BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learning
Evaluation results
- Top-1 accuracy (test split) on BDD100K Period (Time-of-Day) ClassificationBDD100K-Toolkit93.460
- Macro F1 (test split) on BDD100K Period (Time-of-Day) ClassificationBDD100K-Toolkit79.940
- Macro precision (test split) on BDD100K Period (Time-of-Day) ClassificationBDD100K-Toolkit86.390
- Macro recall (test split) on BDD100K Period (Time-of-Day) ClassificationBDD100K-Toolkit75.660
