Abstract
Deep learning object detectors often suffer from performance degradation when applied to a target domain that differs from the training source domain. This paper presents a two-stage approach for unsupervised domain adaptation (UDA) that leverages image-to-image translation to bridge the domain gap. By restyling annotated source data to match the target domain's appearance, a standard object detector can be trained on "fake" labeled data. This method avoids complex feature-level alignment and achieves state-of-the-art results across various scenarios, including synthetic-to-real and adverse weather transitions.
Introduction
Object detection models are highly sensitive to domain shift. A detector trained on high-quality images from one geographic location or weather condition often fails when deployed in a different environment, such as moving from sunny California to foggy London. While manual annotation of the target domain is a solution, it is prohibitively expensive and time-consuming.
Unsupervised Domain Adaptation (UDA) seeks to utilize labeled source data and unlabeled target data to mitigate this shift. Traditional UDA methods typically focus on learning domain-invariant features through complex architectural modifications. However, these "black box" approaches are often difficult to implement and interpret. This paper proposes shifting the focus from feature-level alignment to pixel-level translation.
Methodology
The proposed approach utilizes a two-stage pipeline designed for simplicity and interpretability.
Stage 1: Fake Dataset Generation
The first stage involves generating a synthetic dataset that mimics the target domain's style while preserving the source domain's labels. Two types of unsupervised image-to-image translators are employed:
- CycleGAN: Effective for high-level structural translations.
- AST-AdaIN (Adaptive Instance Normalization): A style-transfer model optimized for low-level translations such as texture and color.
Because these models are unsupervised, they only require raw, unlabeled images from both domains. Once the translator is trained, source images are converted into the target style. Since the geometric structure remains intact, the original bounding box annotations are directly transferable to the "fake" images.
Stage 2: Object Detector Training
In the second stage, a standard Faster R-CNN detector is trained using the generated "fake-target" dataset. A key advantage of this method is that it requires no modifications to the detector's architecture, making it highly compatible with existing frameworks.
Experimental Setup
The method was evaluated across three distinct domain-shift scenarios:
- Synthetic to Real (Sim10k to Cityscapes): Adapting from Grand Theft Auto V synthetic data to real-world European street scenes.
- Weather Adaptation (Cityscapes to Foggy Cityscapes): Moving from clear weather to synthetic fog.
- Cross-Camera Adaptation (Cityscapes ↔ KITTI): Bridging the gap between different sensor setups and resolutions.
Discussion and Key Insights
The success of this approach highlights several critical insights:
- Pixel-Level vs. Feature-Level Alignment: Translating input pixels can be more effective than aligning hidden layer features. This "back to basics" approach preserves essential target domain information that might be lost during feature-level forcing.
- Interpretability: Unlike feature-alignment methods, researchers can visually inspect the "fake" training data. This allows for direct identification of failure modes, such as GAN-induced artifacts.
- Style vs. Structure: For synthetic-to-real tasks, matching low-level textures (via AdaIN) proved more critical than high-level structural changes (via CycleGAN).
- Inference Efficiency: Since the adaptation occurs during training, the final model is a standard detector. This results in approximately 1.4x faster inference compared to SOTA models that include auxiliary domain-classification layers.
Results
The proposed method demonstrated significant improvements over baselines:
- Sim10k → Cityscapes: Achieved 44.6% Average Precision (AP), significantly outperforming the source-only baseline (34.7%) and the previous SOTA, Strong-Weak DA (31.7%).
- Cityscapes → Foggy Cityscapes: Reached 39.5% mAP, surpassing more complex feature-alignment models.
- Gap Reduction: The method closed the performance gap between unsupervised adaptation and the "upper bound" (supervised training on target data) by up to 9.9 percentage points more than existing complex methods.
Conclusion and Future Work
While effective, the method is dependent on the quality of the GAN translation. "Unwanted artifacts" can degrade detector performance. Furthermore, the model remains limited by the diversity of object poses and sizes in the source domain. Future research could explore "semantic consistency" losses to ensure objects maintain their identity during translation and methods to address inherent source domain biases.
Summary updated