DAFNe
Code for our paper "DAFNe: A One-Stage Anchor-Free Deep Model for Oriented Object Detection".
Install / Use
/learn @braun-steven/DAFNeREADME
DAFNe: A One-Stage Anchor-Free Approach for Oriented Object Detection
<img src="./res/header.png"/>Code for our Paper DAFNe: A One-Stage Anchor-Free Approach for Oriented Object Detection.
Datasets
- UCAS-AOD: https://hyper.ai/datasets/5419
- DOTA 1.0/1.5: https://captain-whu.github.io/DOTA/index.html
- Note: See ./tools/prepare_dota/ for instructions on how to prepare the DOTA datasets.
- HRSC2016: https://www.kaggle.com/guofeng/hrsc2016
Docker Setup
Use the Dockerfile to build the necessary docker image:
docker build -t dafne .
Training
Check out ./configs/pre-trained/ for different pre-defined configurations for the DOTA 1.0, DOTA 1.5, UCAS-AOD, and HRSC2016 datasets. Use these paths as argument for the --config-file option below.
With Docker
Use the ./tools/run.py helper to start running experiments
./tools/run.py --gpus 0,1,2,3 --config-file ./configs/dota-1.0/1024.yaml
Without Docker
NVIDIA_VISIBLE_DEVICES=0,1,2,3 ./tools/plain_train_net.py --num-gpus 4 --config-file ./configs/dota-1.0/1024.yaml
Pre-Trained Weights
| Dataset | mAP (%) | Config | Weights | |----------|---------|-----------------------------------------------------------------|------------------------------------------------------------------------------------------------------------| | UCAS-AOD | 89.65 | ucas_aod_r101_ms | ucas-aod-r101-ms.pth | | HRSC2016 | 89.76 | hrsc_r50_ms | hrsc-r50-ms.pth | | DOTA 1.0 | 76.95 | dota-1.0_r101_ms | dota-1.0-r101-ms.pth | | DOTA 1.5 | 71.99 | dota-1.5_r101_ms | dota-1.5-r101-ms.pth |
Pre-Trained Weights Usage with Docker
./tools/run.py --gpus 0 --config-file <CONFIG_PATH> --opts "MODEL.WEIGHTS <WEIGHTS_PATH>"
Pre-Trained Weights Usage without Docker
NVIDIA_VISIBLE_DEVICES=0 ./tools/plain_train_net.py --num-gpus 1 --config-file <CONFIG_PATH> MODEL.WEIGHTS <WEIGHTS_PATH>
Cite
@misc{lang2021dafne,
title={DAFNe: A One-Stage Anchor-Free Approach for Oriented Object Detection},
author={Steven Lang and Fabrizio Ventola and Kristian Kersting},
year={2021},
eprint={2109.06148},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
Acknowledgments
- Thanks to AdelaiDet for providing the initial FCOS implementation
- Thanks to Detectron2 for providing a general object detection framework
Related Skills
proje
Interactive vocabulary learning platform with smart flashcards and spaced repetition for effective language acquisition.
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
best-practices-researcher
The most comprehensive Claude Code skills registry | Web Search: https://skills-registry-web.vercel.app
groundhog
400Groundhog's primary purpose is to teach people how Cursor and all these other coding agents work under the hood. If you understand how these coding assistants work from first principles, then you can drive these tools harder (or perhaps make your own!).
