TL;DR
This paper tackles the challenge of adapting vehicle detection models to new aerial imagery domains where labeled data is scarce. They introduce a novel approach using generative AI (specifically, fine-tuned Latent Diffusion Models) to synthesize high-quality aerial images and their labels, significantly improving detector performance in unseen environments.
What Problem Does This Paper Address?
Deep learning models for object detection, including vehicle detection in aerial imagery, often struggle when applied to new geographic regions or under different imaging conditions. This "domain shift" occurs because models trained on data from one source domain (e.g., a specific city or weather pattern) fail to generalize well to a target domain with different environmental factors, urban layouts, or camera parameters. Acquiring large, meticulously annotated datasets for every new domain is prohibitively expensive and time-consuming. This paper addresses this gap by proposing a method to generate synthetic, annotated aerial imagery that bridges the domain gap, enabling better adaptation of existing detectors.
Methods
The core of the proposed method involves a two-stage pipeline leveraging fine-tuned Latent Diffusion Models (LDMs):
- Synthetic Image Generation: The authors fine-tune a pre-trained Stable Diffusion model on both source and target domain aerial images. This fine-tuning is guided by specific text prompts that include unique identifiers for the source and target domains, allowing the model to learn domain-specific characteristics. This stage generates synthetic images that mimic the visual style of both the source and target domains.
- Automatic Labeling via Cross-Attention Maps: To obtain labels for the synthetic images, the paper exploits the cross-attention maps generated by the diffusion model. These maps highlight regions in the image that correspond to specific concepts in the text prompt. The authors propose using "multi-channel" cross-attention maps, which combine attention from the object concept (e.g., "car") and learned tokens representing both the object and background. This multi-channel approach, along with a regularization loss, helps to more accurately localize objects. A detector trained on the source domain data is then used to predict pseudo-labels on the synthetic source images. This detector is further trained on these synthetic source images and their pseudo-labels, and then used to generate pseudo-labels for the synthetic target domain images. A label refinement strategy using confidence scores is also employed to improve the quality of these generated labels.
Datasets
The paper utilizes three real-world aerial view vehicle detection datasets:
- DOTA: A publicly available dataset.
- LINZ: A newly introduced dataset created by the authors, containing aerial images from Selwyn, New Zealand, with annotations for small vehicle locations.
- UGRC: Another new dataset from the authors, using aerial images from Utah, USA, also annotated for small vehicle locations.
All datasets are processed to a uniform image size of 112px x 112px. The LINZ and UGRC datasets are particularly valuable as they provide new benchmarks for vehicle detection in specific geographic regions.
Key Insights and Ideas
- Cross-attention maps as a source of localization: The paper builds on the insight that cross-attention maps in diffusion models implicitly encode spatial information about concepts mentioned in text prompts, making them useful for object localization.
- Multi-channel attention for robustness: By combining attention maps from the object concept and learned background tokens, the method achieves more robust object localization compared to using only the object's attention map. This helps to better distinguish foreground objects from background clutter.
- Weak supervision for domain adaptation: The use of weak labels (e.g., whether a vehicle is present) for the target domain significantly simplifies data acquisition and enables adaptation to unseen environments.
- Generative models as powerful data augmenters: The research demonstrates that fine-tuned diffusion models can generate high-fidelity synthetic data with accurate labels, effectively bridging domain gaps for downstream tasks like object detection.
Key Results
The proposed method demonstrates significant improvements in AP50 (Average Precision at an IoU threshold of 0.5) across various adaptation scenarios:
- Improvements over supervised learning on source data: 4-23% increase in AP50.
- Improvements over weakly supervised adaptation methods: 6-10% increase in AP50.
- Improvements over unsupervised domain adaptation methods: 7-40% increase in AP50.
- Improvements over open-set object detectors: More than 50% increase in AP50.
These results consistently outperform existing state-of-the-art methods on the LINZ and DOTA to UGRC adaptation tasks.
Limitations and Future Work
The authors acknowledge two primary limitations:
- Patch-based processing: To handle the resolution limitations of diffusion models and detect small objects, they downsample large aerial images into smaller patches. This process might lead to challenges in detecting objects that span across patch boundaries or are very small relative to the patch size.
- Handling overlapping objects: The method may struggle with accurately separating overlapping objects when generating synthetic data, as their cross-attention maps can become intertwined.
For future work, the authors propose integrating Vision-Language Models (VLLMs) trained for aerial imagery to automatically generate weak labels within the pipeline, potentially enabling a fully unsupervised workflow. They also aim to address the challenges of detecting small objects and handling overlapping instances.
Summary updated