Progressive Domain Adaptation for Object Detection

Han-Kai Hsu, Chun-Han Yao, Yi-Hsuan Tsai, Wei-Chih Hung, Hung-Yu Tseng, Maneesh Singh, Ming-Hsuan Yang

Abstract

Recent deep learning methods for object detection rely on a large amount of bounding box annotations. Collecting these annotations is laborious and costly, yet supervised models do not generalize well when testing on images from a different distribution. Domain adaptation provides a solution by adapting existing labels to the target testing data. However, a large gap between domains could make adaptation a challenging task, which leads to unstable training processes and sub-optimal results. In this paper, we propose to bridge the domain gap with an intermediate domain and progressively solve easier adaptation subtasks. This intermediate domain is constructed by translating the source images to mimic the ones in the target domain. To tackle the domain-shift problem, we adopt adversarial learning to align distributions at the feature level. In addition, a weighted task loss is applied to deal with unbalanced image quality in the intermediate domain. Experimental results show that our method performs favorably against the state-of-the-art method in terms of the performance on the target domain.

Introduction

Deep learning object detectors require massive amounts of labeled data and typically suffer a severe performance drop when deployed in new environments—a problem known as domain shift. For example, a model trained on sunny highway images (source domain) might fail on foggy city streets (target domain).

Unsupervised Domain Adaptation (UDA) attempts to align the feature distributions of the labeled source domain and the unlabeled target domain so the model can generalize. However, when the visual gap between the two domains is too large, directly mapping across them using adversarial learning becomes highly unstable and yields sub-optimal results. This paper proposes a progressive framework to smooth this learning process by introducing an intermediate "synthetic" domain.

Conceptual overview of progressive domain adaptation using an intermediate synthetic domain.

Methodology

To address the instability of adapting across large domain gaps, the proposed framework breaks the adaptation into two easier subtasks using an intermediate stepping stone.

1. Intermediate Domain Generation

The authors utilize an image-to-image translation network (CycleGAN) to translate labeled source images into the visual style of the target domain. This creates a synthetic intermediate domain ($F$) that shares the exact content and labels of the source ($S$) but mimics the appearance of the target ($T$).

2. Progressive Feature Alignment

The adaptation is executed in two distinct stages:

  • Stage 1 ($S \to F$): The model aligns the original source images with the synthetic images. Since the content is identical, the network focuses on overcoming purely pixel-level appearance differences.
  • Stage 2 ($F \to T$): The model aligns the synthetic images with the actual target images. Because they already look similar, the network can focus on aligning object and context distributions.

Both stages utilize adversarial learning via a Gradient Reversal Layer (GRL) attached to a Faster R-CNN backbone to force the network to learn domain-invariant features.

Detailed architecture of the two-stage progressive adaptation framework and the underlying adaptation network.

3. Weighted Task Loss

Recognizing that GAN-generated images vary in quality, the authors introduce a dynamic weighting scheme. Using the CycleGAN discriminator to score how closely a synthetic image matches the target distribution, high-quality translations are assigned higher weights in the detection loss, while poor translations with artifacts are down-weighted to prevent them from confusing the detector.

Experiments and Results

The method was evaluated across several driving-centric datasets to simulate real-world domain discrepancies: KITTI, Cityscapes, Foggy Cityscapes, and BDD100k.

  • Cross-Camera (KITTI $\to$ Cityscapes): The model achieved 43.9% Average Precision (AP) on the 'car' class, significantly outperforming the previous state-of-the-art (38.5%).
  • Weather (Cityscapes $\to$ Foggy Cityscapes): The method reached 36.9% mean AP (mAP) across 8 classes, surpassing previous methods which hovered around 34%.
  • Small to Large-Scale (Cityscapes $\to$ BDD100k daytime): The model improved mAP to 24.3%, a notable jump from the baseline Faster R-CNN (20.8%).
  • Ablation Study: The dynamic weighting scheme alone provided a 1.7% AP boost over using unweighted synthetic images, validating the importance of filtering noisy GAN outputs.

Conclusion

This work demonstrates that "dividing and conquering" large domain gaps through an intermediate synthetic domain significantly stabilizes adversarial adaptation. By combining pixel-level translation with feature-level alignment and intelligent loss weighting, the proposed progressive framework achieves state-of-the-art performance in unsupervised domain adaptation for object detection. While the pipeline introduces additional computational complexity and depends on the quality of the underlying translation model, it provides a robust path for deploying detectors in diverse, unlabeled environments.

Summary updated

BibTeX
@inproceedings{hsu2020progressive,
  author = {Han-Kai Hsu and Chun-Han Yao and Yi-Hsuan Tsai and Wei-Chih Hung and Hung-Yu Tseng and Maneesh Singh and Ming-Hsuan Yang},
  title = {{Progressive Domain Adaptation for Object Detection}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2020},
  doi = {10.1109/wacv45572.2020.9093358},
}
Figure