Domain Adaptive and Generalizable Network Architectures and Training Strategies for Semantic Image Segmentation

Lukas Hoyer, Dengxin Dai, Luc Van Gool
4/26/2023
cs.CV

Official code: lhoyer/HRDA (266 stars, last commit 2024-08-10). 1 more implementation below.

Abstract

Unsupervised domain adaptation (UDA) and domain generalization (DG) enable machine learning models trained on a source domain to perform well on unlabeled or even unseen target domains. As previous UDA&DG semantic segmentation methods are mostly based on outdated networks, we benchmark more recent architectures, reveal the potential of Transformers, and design the DAFormer network tailored for UDA&DG. It is enabled by three training strategies to avoid overfitting to the source domain: While (1) Rare Class Sampling mitigates the bias toward common source domain classes, (2) a Thing-Class ImageNet Feature Distance and (3) a learning rate warmup promote feature transfer from ImageNet pretraining. As UDA&DG are usually GPU memory intensive, most previous methods downscale or crop images. However, low-resolution predictions often fail to preserve fine details while models trained with cropped images fall short in capturing long-range, domain-robust context information. Therefore, we propose HRDA, a multi-resolution framework for UDA&DG, that combines the strengths of small high-resolution crops to preserve fine segmentation details and large low-resolution crops to capture long-range context dependencies with a learned scale attention. DAFormer and HRDA significantly improve the state-of-the-art UDA&DG by more than 10 mIoU on 5 different benchmarks. The implementation is available at https://github.com/lhoyer/HRDA.

View on arXivView PDF

Code Implementations(2)

lhoyer/HRDAOfficial100%

[ECCV22] Official Implementation of HRDA: Context-Aware High-Resolution Domain-Adaptive Semantic Segmentation

26634Shell, PythonApr 21, 20222 years agoNOASSERTION
attentionhigh-resolutionmulti-resolutionsemantic-segmentationtransformer+1 more
lhoyer/DAFormerCommunity73%

[CVPR22] Official Implementation of DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation

57198Shell, PythonNov 14, 20212 years agoNOASSERTION
cvpr2022semantic-segmentationtransformerunsupervised-domain-adaptation

Similar Papers

Cite this paper

@article{hoyer2023domain,
  title  = {Domain Adaptive and Generalizable Network Architectures and Training Strategies for Semantic Image Segmentation},
  author = {Lukas Hoyer and Dengxin Dai and Luc Van Gool},
  year   = {2023},
  eprint = {2304.13615},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.13615v2}
}

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/2304.13615.svg)](https://codeofpaper.com/paper/2304.13615)

Discussion