Downloads · 30 days
30
33% of all-time downloads
dronefreak/gwhd-rfdetr-medium
gwhd-rfdetr-medium is a object detection model from dronefreak. Use it when you need objects located in an image. It is set up for rfdetr. The card lists the license as apache-2.0.
Fine-tuned RF-DETR Medium object detector on the Global Wheat Head Dataset benchmark dataset, trained and evaluated as part of DetectionBench -- a framework for reproducibly benchmarking modern object detectors with i…
Downloads · 30 days
30
33% of all-time downloads
All-time downloads
90
Public
Repo size
137 MB
Likes
2
Public
Click a slice to open those files.
.pth134 MB · 99%
From the Hugging Face model README
Fine-tuned RF-DETR Medium object detector on the Global Wheat Head Dataset 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="gwhd_rfdetr-medium_showcase.jpg" alt="Global Wheat Head Dataset 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-RF--DETR-0aa1a7?style=flat-square" alt="Framework"> <img src="https://img.shields.io/badge/Base_Model-RF--DETR_Medium-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-27.11%25-orange?style=flat-square" alt="mAP@50:95"> <img src="https://img.shields.io/badge/Params-33.7M-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-Apache--2.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 rfdetr huggingface_hub
from huggingface_hub import hf_hub_download
import rfdetr
weights = hf_hub_download(
repo_id="dronefreak/gwhd-rfdetr-medium",
filename="checkpoint_best_total.pth"
)
model = rfdetr.RFDETRMedium(pretrain_weights=weights)
detections = model.predict("image.jpg", threshold=0.25)
Evaluated on the Global Wheat Head Dataset test split, using DetectionBench's standard evaluation pipeline (detectionbench-evaluate).
| Metric | Score (%) |
|---|---|
| mAP@50 | 67.1 |
| mAP@50-95 | 27.11 |
| Precision | 78.6 |
| Recall | 65.66 |
| F1 Score | 71.55 |
| Parameters | 33.7M |
| FLOPs | N/A (not published upstream) |
Every model DetectionBench has trained and evaluated on Global Wheat Head Dataset 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 |
|---|---|---|---|---|
| YOLO11x | 74.25 | 34.92 | 83.37 | 67.92 |
| YOLO26m | 71.58 | 33.48 | 79.94 | 62.74 |
| YOLO26s | 70.49 | 31.39 | 79.47 | 63.43 |
| YOLOv8m | 69.55 | 29.34 | 80.69 | 63.74 |
| YOLOv8s | 68.29 | 29.48 | 79.89 | 62.52 |
| RF-DETR Medium | 67.1 | 27.11 | 78.6 | 65.66 |
| YOLOv8n | 66.19 | 28.21 | 78.69 | 60.3 |
| RF-DETR Small | 64.51 | 26.12 | 77.6 | 63.61 |
| RF-DETR Nano | 53.82 | 19.65 | 72.52 | 53.64 |
| Class | mAP@50 | mAP@50-95 |
|---|---|---|
| wheat_head | 67.1 | 27.11 |
This model was evaluated with Supervision's detection metrics, which report mAP/Precision/Recall directly but don't produce a confusion-matrix plot the way Ultralytics' validator does.
Domain shift can matter more than the aggregate score above for field deployment, so this evaluates the same test split broken down by the contributing country/institution, using per-image domain metadata (domain_metadata.json in this repository) compiled by this project for this stratified evaluation -- not a file shipped with the original GWHD release. Each row below is computed by re-running this exact model's evaluation restricted to that country's images only -- the same mAP definition as the aggregate number above (Ultralytics' model.val() for YOLO, Supervision's MeanAveragePrecision for RF-DETR), just on a filtered subset, not a separate metric implementation. One test image with no resolvable country in the source metadata (a documented upstream duplicate-filename quirk) is excluded from every row below.
| Country | mAP@50 | mAP@50-95 | Test Images |
|---|---|---|---|
| Australia | 57.87 | 22.49 | 281 |
| China | 88.71 | 43.81 | 200 |
| Japan | 71.1 | 38.82 | 60 |
| Mexico | 68.54 | 27.99 | 205 |
| Sudan | 74.03 | 34.04 | 30 |
| US | 64.97 | 23.76 | 605 |
See country_breakdown.json (results) and domain_metadata.json (the country/growth-stage mapping used to compute them) in this repository for the raw data behind this table. |
This model was trained on Global Wheat Head Dataset. For the full dataset description, provenance, license, and citation, see the dataset card:
https://huggingface.co/datasets/dronefreak/GWHD
| Setting | Value |
|---|---|
| Dataset | Global Wheat Head Dataset |
| Framework | RF-DETR |
| Training Toolkit | DetectionBench |
| Epochs (configured max) | 500 |
| Epochs (actually trained) | 109 |
| Early Stopping Patience | 100 |
| Batch Size | 5 |
| Resolution | 576 |
| Optimizer | adamw |
| Learning Rate | 0.0001 |
| Seed | 42 |
checkpoint_best_total.pth
metrics.csv
config.json
country_breakdown.json
domain_metadata.json
gwhd_rfdetr-medium_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.
wheat_head, so per-class breakdowns collapse to one row -- the challenge here is localization density, not class discrimination.If you use this model in your research, please consider citing the dataset and the model architecture:
@article{david2021global,
title = {Global Wheat Head Dataset 2021: more diversity to improve the benchmarking of wheat head localization methods},
author = {David, Etienne and Serouart, Mario and Smith, Daniel and Madec, Simon and Velumani, Kaaviya and Liu, Shouyang and Wang, Xu and Pinto Espinosa, Francisco and Shafiee, Shahameh and Tahir, Izzat S. A. and Tsujimoto, Hisashi and Nasuda, Shuhei and Zheng, Bangyou and Kichgessner, Norbert and Aasen, Helge and Hund, Andreas and Sadhegi-Tehran, Pouria and Nagasawa, Koichi and Ishikawa, Goro and Dandrifosse, S{\'e}bastien and Carlier, Alexis and Mercatoris, Benoit and Kuroki, Ken and Wang, Haozhou and Ishii, Masanori and Badhon, Minhajul A. and Pozniak, Curtis and LeBauer, David Shaner and Lilimo, Morten and Poland, Jesse and Chapman, Scott and de Solan, Benoit and Baret, Fr{\'e}d{\'e}ric and Stavness, Ian and Guo, Wei},
journal = {Plant Phenomics},
year = {2021},
doi = {10.34133/2021/9846158}
}
@article{david2020global,
title = {Global Wheat Head Detection (GWHD) Dataset: A Large and Diverse Dataset of High-Resolution RGB-Labelled Images to Develop and Benchmark Wheat Head Detection Methods},
author = {David, Etienne and Madec, Simon and Sadeghi-Tehran, Pouria and Aasen, Helge and Zheng, Bangyou and Liu, Shouyang and Kirchgessner, Norbert and Ishikawa, Goro and Nagasawa, Koichi and Badhon, Minhajul A. and Pozniak, Curtis and de Solan, Benoit and Hund, Andreas and Chapman, Scott C. and Baret, Fr{\'e}d{\'e}ric and Stavness, Ian and Guo, Wei},
journal = {Plant Phenomics},
year = {2020},
doi = {10.34133/2020/3521852}
}
@inproceedings{robinson2026rfdetr,
title = {RF-DETR: Real-Time Detection Transformer},
author = {Robinson, Isaac and Robicheaux, Peter and Popov, Matvei and Ramanan, Deva and Peri, Neehar},
booktitle = {International Conference on Learning Representations (ICLR)},
year = {2026},
url = {https://arxiv.org/abs/2511.09554}
}
@article{oquab2023dinov2,
title={DINOv2: Learning Robust Visual Features without Supervision},
author={Oquab, Maxime and Darcet, Timoth{\'e}e and Moutakanni, Theo and Vo, Huy and Szafraniec, Marc and Khalidov, Vasil and Fernandez, Pierre and Haziza, Daniel and Massa, Francisco and El-Nouby, Alaaeldin and others},
journal={arXiv preprint arXiv:2304.07193},
year={2023}
}