Although there is significant progress in supervised semantic segmentation, it remains challenging to deploy the segmentation models to unseen domains due to domain biases. Domain adaptation can help in this regard by transferring knowledge from a labeled source domain to an unlabeled target domain. Previous methods typically attempt to perform the adaptation on global features, however, the local semantic affiliations accounting for each pixel in the feature space are often ignored, resulting in less discriminability. To solve this issue, we propose a novel semantic prototype-based contrastive learning framework for fine-grained class alignment. Specifically, the semantic prototypes provide supervisory signals for per-pixel discriminative representation learning and each pixel of source and target domains in the feature space is required to reflect the content of the corresponding semantic prototype. In this way, our framework is able to explicitly make intra-class pixel representations closer and inter-class pixel representations further apart to improve the robustness of the segmentation model as well as alleviate the domain shift problem. Our method is easy to implement and attains superior results compared to state-of-the-art approaches, as is demonstrated with a number of experiments. The code is publicly available at [this https URL](https://github.com/BinhuiXie/SPCL).
翻译:尽管在受监督的语义分割方面有显著进展,但由于领域偏差,将分解模型部署到隐蔽领域仍具有挑战性,在这方面,域适应可以通过将知识从标签源域中的知识从标签源域转移到无标签目标域而有所帮助。以往方法通常试图对全球特征进行调整,然而,对特性空间中每个像素的本地语义属性往往被忽视,导致差异性较小。为解决这一问题,我们提议为细微分层类校正校正提供一个新型语义原型对比学习框架。具体而言,语义原型为每像素歧视性代表性学习提供监管信号,以及功能空间中每个源和目标域的像素等同等值信号,以反映出相应的语义原型的内容。通过这种方式,我们的框架能够明确地使分类像素表达方式更加接近和类次等同像素表达方式,进一步改进分解模式的稳健性,并缓解域变换问题。我们的方法比较容易执行和取得优异性结果,比州-像素歧视性代表性学习和功能空间中每个源域域域域域域别方法。M/CLS/CLS/CLS/CLSDLS展示了公开的代码。