This is the official code for our ICCV 2025 paper:
Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision
Xiao Fang, Minhyek Jeon, Zheyang Qin, Stanislav Panev, Celso M de Melo, Shuowen Hu, Shayok Chakraborty, Fernando De la Torre
# Create virtual environment
conda create -n agenda python=3.9
# Install torch
conda install pytorch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 pytorch-cuda=12.1 -c pytorch -c nvidia
# Install dependencies
pip install -r requirements.txt
# Install mmengine and mmcv
mim install mmengine
mim install "mmcv>=2.0.0"
# Install mmdetection
git clone https://github.com/open-mmlab/mmdetection.git
cd mmdetection
pip install -v -e .
# Install mmyolo
git clone https://github.com/open-mmlab/mmyolo.git
cd mmyolo
pip install -v -e .
Please follow the instruction here.
Please follow the instruction here.
Please follow the instruction here.
We upload all checkpoints here. For more usage details, please go through each stage.
Please cite the paper if you use the code and datasets.
@misc{fang2025adaptingvehicledetectorsaerial,
title={Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision},
author={Xiao Fang and Minhyek Jeon and Zheyang Qin and Stanislav Panev and Celso de Melo and Shuowen Hu and Shayok Chakraborty and Fernando De la Torre},
year={2025},
eprint={2507.20976},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2507.20976},
}
The code is built on diffusers, DAAM, and AttnDreamBooth, thanks for their amazing work!