Improving Single Domain-Generalized Object Detection: A Focus on Diversification and Alignment
Muhammad Sohail Danish, Muhammad Haris Khan, Muhammad Akhtar Munir, M. Saquib Sarfraz, Mohsen Ali
TL;DR
This work tackles the challenge of single-domain generalized object detection by introducing a twofold strategy: (1) diversify the single source domain through a curated set of augmentations, including ImageNet-C and Fourier-based perturbations, to reduce reliance on domain-specific cues; (2) align detections across original and augmented views by jointly optimizing classification and localization consistency, producing robust and well-calibrated detectors. The method is detector-agnostic and improves both two-stage and one-stage detectors, achieving substantial gains in unseen-domain mAP and better calibration measured by D-ECE, across diverse shifts such as real-to-artistic and multi-weather urban scenes. The authors validate their approach with extensive experiments and ablations, demonstrating that aligning both classification and localization across diversified views yields additive benefits beyond diversification alone. A public code release accompanies the work, signaling practical impact for real-world deployments where domain shifts are common and labeled target data are unavailable.
Abstract
In this work, we tackle the problem of domain generalization for object detection, specifically focusing on the scenario where only a single source domain is available. We propose an effective approach that involves two key steps: diversifying the source domain and aligning detections based on class prediction confidence and localization. Firstly, we demonstrate that by carefully selecting a set of augmentations, a base detector can outperform existing methods for single domain generalization by a good margin. This highlights the importance of domain diversification in improving the performance of object detectors. Secondly, we introduce a method to align detections from multiple views, considering both classification and localization outputs. This alignment procedure leads to better generalized and well-calibrated object detector models, which are crucial for accurate decision-making in safety-critical applications. Our approach is detector-agnostic and can be seamlessly applied to both single-stage and two-stage detectors. To validate the effectiveness of our proposed methods, we conduct extensive experiments and ablations on challenging domain-shift scenarios. The results consistently demonstrate the superiority of our approach compared to existing methods. Our code and models are available at: https://github.com/msohaildanish/DivAlign
