MIC: Masked Image Consistency for Context-Enhanced Domain Adaptation

Lukas Hoyer, Dengxin Dai, Haoran Wang, Luc Van Gool
12/2/2022
cs.CV

Official code: lhoyer/MIC (297 stars, Python, last commit 2024-08-10).

Abstract

In unsupervised domain adaptation (UDA), a model trained on source data (e.g. synthetic) is adapted to target data (e.g. real-world) without access to target annotation. Most previous UDA methods struggle with classes that have a similar visual appearance on the target domain as no ground truth is available to learn the slight appearance differences.

Show full abstract

To address this problem, we propose a Masked Image Consistency (MIC) module to enhance UDA by learning spatial context relations of the target domain as additional clues for robust visual recognition. MIC enforces the consistency between predictions of masked target images, where random patches are withheld, and pseudo-labels that are generated based on the complete image by an exponential moving average teacher. To minimize the consistency loss, the network has to learn to infer the predictions of the masked regions from their context. Due to its simple and universal concept, MIC can be integrated into various UDA methods across different visual recognition tasks such as image classification, semantic segmentation, and object detection. MIC significantly improves the state-of-the-art performance across the different recognition tasks for synthetic-to-real, day-to-nighttime, and clear-to-adverse-weather UDA. For instance, MIC achieves an unprecedented UDA performance of 75.9 mIoU and 92.8% on GTA-to-Cityscapes and VisDA-2017, respectively, which corresponds to an improvement of +2.1 and +3.0 percent points over the previous state of the art. The implementation is available at https://github.com/lhoyer/MIC.

View on arXivView PDF

Code Implementations(1)

lhoyer/MICOfficial100%

[CVPR23] Official Implementation of MIC: Masked Image Consistency for Context-Enhanced Domain Adaptation

29747Python, CudaNov 28, 20222 years ago

Similar Papers

Cite this paper

@article{hoyer2022mic,
  title  = {MIC: Masked Image Consistency for Context-Enhanced Domain Adaptation},
  author = {Lukas Hoyer and Dengxin Dai and Haoran Wang and Luc Van Gool},
  year   = {2022},
  eprint = {2212.01322},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.01322}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.01322.svg)](https://codeofpaper.com/paper/2212.01322)

Discussion