Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision

Xiao Fang, Minhyek Jeon, Zheyang Qin, Stanislav Panev, Celso de Melo, Shuowen Hu, Shayok Chakraborty, Fernando De la Torre · DOI

Introduction

Computer vision models often exhibit poor generalization when deployed in environments that differ significantly from their training data. In the context of aerial imagery, this "domain shift" is particularly pronounced. A vehicle detector trained on temperate, urban regions like New Zealand may fail when applied to arid, rocky terrains such as Utah due to variations in lighting, soil color, and infrastructure. Traditionally, overcoming this requires extensive manual annotation of the target domain, which is both costly and time-consuming.

This paper introduces AGenDA (Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision), a framework that leverages Latent Diffusion Models (LDMs) to synthesize high-quality training data for new geographic regions using only weak supervision—simple image-level tags indicating the presence of a vehicle.

The AGenDA Framework

The AGenDA pipeline transforms a generative model into an automated data-labeling engine. The process begins by fine-tuning a Stable Diffusion model on both the source (fully labeled) and target (weakly labeled) domains. To distinguish between domain-specific features, the authors utilize learnable tokens that capture the unique visual characteristics of each environment.

Overview of the AGenDA framework, illustrating the adaptation from source (NZ) to target (Utah) environments using synthetic data and cross-attention maps.

Methodology: From Attention to Labels

The core innovation of AGenDA lies in utilizing the internal cross-attention maps of the diffusion model. When the model generates an image based on a prompt containing the word "car," its cross-attention layers highlight the specific pixels associated with that concept. By stacking these maps into a multi-channel format, the framework creates a structural blueprint for vehicle localization that is largely independent of the target domain's visual style.

Visual comparison of synthetic images (a), weak labels (b), generated labels (c), and various cross-attention maps (d-g) used for localization.

To ensure label quality, a classifier refinement step filters out "hallucinations" by distinguishing between high-confidence vehicle patches and background noise. This synthetic, self-labeled dataset is then used to train a final detector optimized for the target environment.

Datasets and Experimental Setup

The study utilizes three primary datasets, all standardized to a 12.5 cm ground sampling distance (GSD):

  • DOTA-v2: A standard benchmark for aerial object detection.
  • LINZ (New Zealand): A new dataset featuring over 2 million images from the Selwyn region.
  • UGRC (Utah, USA): A new dataset featuring over 2.6 million images from various regions in Utah.

These datasets provide a rigorous testbed for cross-domain adaptation between vastly different geographical and environmental conditions.

Key Results

The AGenDA framework demonstrates significant performance improvements over existing methods when adapting models to the Utah (UGRC) environment:

  • Domain Adaptation: Compared to source-only models, AGenDA improved Average Precision ($AP_{50}$) by 4–23%.
  • State-of-the-Art Comparison: It outperformed existing unsupervised domain adaptation methods by 7–40%.
  • Open-Set Detectors: AGenDA significantly outperformed general-purpose "zero-shot" models like Grounding-DINO by over 50%. This proves that specialized domain adaptation is superior to general-purpose foundation models for niche tasks like aerial surveillance, where top-down perspectives differ from standard internet imagery.

Limitations and Future Work

Despite its success, the framework faces challenges related to resolution. Stable Diffusion's internal maps are often downsampled to low resolutions (e.g., 8x8), making it difficult to precisely label very small vehicles. Additionally, "clumping" remains a hurdle, where adjacent vehicles merge in attention maps, complicating individual object counting. Future research may explore integrating Vision Large Language Models (VLLMs) to automate the initial weak labeling process, moving toward fully unsupervised adaptation.

Summary updated

BibTeX
@inproceedings{fang2025adapting,
  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},
  title = {{Adapting Vehicle Detectors for Aerial Imagery to Unseen Domains with Weak Supervision}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure