Instructions to use dronefreak/exdark-yolov9m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ultralytics
How to use dronefreak/exdark-yolov9m 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/exdark-yolov9m") source = 'http://images.cocodataset.org/val2017/000000039769.jpg' model.predict(source=source, save=True) - Notebooks
- Google Colab
- Kaggle
YOLOv9m Finetuned on ExDark
Fine-tuned YOLOv9m object detector on the ExDark 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/exdark-yolov9m",
filename="best.pt"
)
model = YOLO(weights)
Run Inference
results = model.predict(
source="image.jpg",
conf=0.25
)
results[0].show()
Performance
Evaluated on the ExDark test split, using DetectionBench's standard evaluation pipeline (detectionbench-evaluate).
| Metric | Score (%) |
|---|---|
| mAP@50 | 74.17 |
| mAP@50-95 | 47.38 |
| Precision | 76.27 |
| Recall | 67.94 |
| F1 Score | 71.86 |
| Parameters | 20.2M |
| FLOPs | 77.9B (at 640 px) |
ExDark Model Zoo
Every model DetectionBench has trained and evaluated on ExDark 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 | 88.98 | 61.67 | 83.07 | 81.89 |
| RF-DETR Medium | 88.64 | 62.55 | 86.6 | 79.46 |
| RF-DETR Nano | 85.27 | 58.01 | 85.18 | 74.67 |
| YOLO26l | 77.51 | 50.88 | 80.71 | 70.72 |
| YOLO26m | 76.54 | 50.02 | 82.29 | 68.83 |
| YOLOv8x | 75.4 | 48.39 | 81.53 | 65.86 |
| YOLOv8l | 75.26 | 48.48 | 81.44 | 67.58 |
| YOLOv8m | 74.69 | 48.05 | 78.4 | 69.17 |
| YOLO11x | 74.41 | 48.98 | 81.87 | 67.05 |
| YOLOv9m | 74.17 | 47.38 | 76.27 | 67.94 |
| YOLO26s | 74.0 | 48.32 | 79.11 | 65.59 |
| YOLO11l | 73.44 | 47.56 | 78.57 | 67.09 |
| YOLO11s | 73.35 | 46.8 | 77.93 | 66.38 |
| YOLO11m | 73.17 | 47.16 | 74.83 | 67.23 |
| YOLOv8s | 73.01 | 45.85 | 78.26 | 65.13 |
| YOLO26n | 72.7 | 46.27 | 81.0 | 62.67 |
| YOLOv8n | 71.29 | 44.78 | 78.25 | 62.76 |
| YOLO11n | 70.36 | 44.72 | 76.18 | 61.15 |
Per-Class Performance
| Class | mAP@50 | mAP@50-95 |
|---|---|---|
| Bicycle | 75.38 | 51.61 |
| Boat | 75.7 | 39.47 |
| Bottle | 65.92 | 42.63 |
| Bus | 80.87 | 64.21 |
| Car | 82.26 | 55.71 |
| Cat | 80.85 | 51.03 |
| Chair | 63.9 | 37.73 |
| Cup | 70.72 | 44.15 |
| Dog | 74.57 | 50.0 |
| Motorbike | 82.41 | 51.15 |
| People | 78.38 | 43.51 |
| Table | 59.13 | 37.34 |
Dataset
This model was trained on ExDark. For the full dataset description, provenance, license, and citation, see the dataset card:
https://huggingface.co/datasets/dronefreak/ExDark
Classes
- Bicycle
- Boat
- Bottle
- Bus
- Car
- Cat
- Chair
- Cup
- Dog
- Motorbike
- People
- Table
Training Configuration
| Setting | Value |
|---|---|
| Dataset | ExDark |
| Framework | Ultralytics YOLO |
| Training Toolkit | DetectionBench |
| Epochs (configured max) | 500 |
| Epochs (actually trained) | 213 |
| Early Stopping Patience | 100 |
| Batch Size | 32 |
| Image Size | 640 |
| Optimizer | auto |
| Initial Learning Rate | 0.001 |
| 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
exdark_yolov9m_showcase.jpg
README.md
Related Resources
- ExDark dataset card on Hugging Face
- DetectionBench -- reproducible benchmarks for modern object detectors on real-world datasets
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
- Severe class imbalance:
Peopleaccounts for roughly 46% of all annotated boxes whileBusis the rarest class, so per-class accuracy on rare classes is measured on very few test examples and should be read with wide uncertainty. - Small dataset overall (7,344 images, 734 in the test split, across 12 classes) -- limited training signal for several classes independent of the imbalance above.
- Two-hop provenance: this dataset was converted to YOLO format by a third-party Roboflow export before reaching DetectionBench, not sourced directly from the original per-class-folder release; images are pre-resized to 640x640 by that export.
- The original authors separately request non-commercial use of this dataset (beyond the BSD-3-Clause license text itself) -- this applies to any model trained on it, not only the raw images.
Citation
If you use this model in your research, please consider citing the dataset and the model architecture:
@article{Exdark,
title = {Getting to Know Low-light Images with The Exclusively Dark Dataset},
author = {Loh, Yuen Peng and Chan, Chee Seng},
journal = {Computer Vision and Image Understanding},
volume = {178},
pages = {30-42},
year = {2019},
doi = {https://doi.org/10.1016/j.cviu.2018.10.010}
}
@article{wang2024yolov9,
title={YOLOv9: Learning What You Want to Learn Using Programmable Gradient Information},
author={Wang, Chien-Yao and Yeh, I-Hau and Liao, Hong-Yuan Mark},
journal={arXiv preprint arXiv:2402.13616},
year={2024}
}
- Downloads last month
- 27
Dataset used to train dronefreak/exdark-yolov9m
Collection including dronefreak/exdark-yolov9m
Paper for dronefreak/exdark-yolov9m
Evaluation results
- mAP@50 (test split) on ExDarkDetectionBench74.170
- mAP@50-95 (test split) on ExDarkDetectionBench47.380
- Precision (test split) on ExDarkDetectionBench76.270
- Recall (test split) on ExDarkDetectionBench67.940
