Every Pixel Matters: Center-aware Feature Alignment for Domain Adaptive Object Detector

Cheng-Chun Hsu, Yi-Hsuan Tsai, Yen-Yu Lin, Ming-Hsuan Yang

Abstract

A domain adaptive object detector aims to adapt itself to unseen domains that may contain variations of object appearance, viewpoints or backgrounds. Most existing methods adopt feature alignment either on the image level or instance level. However, image-level alignment on global features may tangle foreground/background pixels at the same time, while instance-level alignment using proposals may suffer from the background noise. Different from existing solutions, we propose a domain adaptation framework that accounts for each pixel via predicting pixel-wise objectness and centerness. Specifically, the proposed method carries out center-aware alignment by paying more attention to foreground pixels, hence achieving better adaptation across domains. We demonstrate our method on numerous adaptation settings with extensive experimental results and show favorable performance against existing state-of-the-art algorithms.

1. Introduction

Object detection models often experience a significant drop in performance when deployed in environments (target domains) that differ from their training data (source domains). This "domain shift" can be caused by changes in weather, lighting, or camera hardware. To mitigate this, Unsupervised Domain Adaptation (UDA) seeks to align features between domains without target-domain labels.

Existing UDA strategies typically fall into two categories: image-level and instance-level alignment. Image-level alignment focuses on global features but often fails because it treats foreground objects and background clutter equally, leading to feature "tangling." Instance-level alignment focuses on object proposals, but in the target domain, these proposals are often inaccurate, causing the model to align noisy background features instead of actual objects.

Comparison of feature alignment strategies: Image-level, Instance-level, and the proposed Center-aware Alignment.

2. Center-aware Feature Alignment

To address these limitations, we propose a "center-aware" alignment strategy. Instead of relying on global scenes or noisy proposals, our method treats every pixel as a potential source of information, weighted by its likelihood of belonging to an object's center.

2.1 Framework Architecture

Our framework is built upon an anchor-free detector (similar to FCOS), which naturally provides pixel-wise predictions. The architecture incorporates two primary alignment components:

  • Global Alignment (GA): A global discriminator $D_{GA}$ aligns the overall scene layout to provide contextual consistency.
  • Center-aware Alignment (CA): This core innovation uses predicted Objectness Maps and Centerness Maps to weight high-level features. By focusing on pixels with high objectness and centerness, the model prioritizes the most discriminative parts of objects while ignoring domain-specific background noise.
Overview of the proposed domain adaptation framework featuring Global and Center-aware Discriminators.

2.2 Adversarial Learning

These weighted "center-aware features" are processed through a discriminator $D_{CA}$ in an adversarial training setup. The feature extractor $G$ is trained to produce object-center features that are indistinguishable between the source and target domains, ensuring that the detector learns domain-invariant representations for the most critical parts of the objects.

3. Experimental Results

We evaluated our method across three challenging domain adaptation benchmarks, achieving state-of-the-art (SOTA) results in each:

  • Weather Adaptation (Cityscapes → Foggy Cityscapes): Our model achieved 40.2% mAP using a ResNet-101 backbone, a substantial improvement over the 25.6% non-adapted baseline and previous SOTA methods like DA-Faster (27.6%).
  • Synthetic-to-Real (Sim10k → Cityscapes): The model reached 49.0% mAP (VGG-16), significantly outperforming the previous best of 43.0%.
  • Cross-camera Adaptation (KITTI → Cityscapes): The method demonstrated robustness to hardware changes, achieving 43.2% mAP.

4. Conclusion and Future Work

By shifting the focus from global scenes or bounding box proposals to pixel-wise center-aware features, our method effectively bridges the domain gap for object detectors. While the model excels in general performance, it still faces challenges with rare object categories (e.g., trucks or motorbikes) due to a lack of foreground pixel samples. Future research will explore the use of category-specific priors to further refine alignment for these underrepresented classes.

Summary updated

BibTeX
@inproceedings{hsu2020every,
  author = {Cheng-Chun Hsu and Yi-Hsuan Tsai and Yen-Yu Lin and Ming-Hsuan Yang},
  title = {{Every Pixel Matters: Center-aware Feature Alignment for Domain Adaptive Object Detector}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58545-7\_42},
}
Figure