Code for TPAMI 2022 paper, "Querying Labeled for Unlabeled: Cross-Image Semantic Consistency Guided Semi-Supervised Semantic Segmentation".
Authors: Linshan Wu, Leyuan Fang, Xingxin He, Min He, Jiayi Ma, and Zhun Zhong
Semi-supervised semantic segmentation aims to learn a semantic segmentation model via limited labeled images and adequate unlabeled images. The key to this task is generating reliable pseudo labels for unlabeled images. Existing methods mainly focus on producing reliable pseudo labels based on the confidence scores of unlabeled images while largely ignoring the use of labeled images with accurate annotations. In this paper, we propose a Cross-Image Semantic Consistency guided Rectifying (CISC-R) approach for semi-supervised semantic segmentation, which explicitly leverages the labeled images to rectify the generated pseudo labels. Our CISC-R is inspired by the fact that images belonging to the same class have a high pixel-level correspondence. Specifically, given an unlabeled image and its initial pseudo labels, we first query a guiding labeled image that shares the same semantic information with the unlabeled image. Then, we estimate the pixel-level similarity between the unlabeled image and the queried labeled image to form a CISC map, which guides us to achieve a reliable pixel-level rectification for the pseudo labels.
- Pascal: JPEGImages | SegmentationClass
- Cityscapes: leftImg8bit | gtFine
- COCO: train2017 | val2017 | masks
βββ [Your Pascal Path]
βββ JPEGImages
βββ SegmentationClass
βββ [Your Cityscapes Path]
βββ leftImg8bit
βββ gtFine
βββ [Your COCO Path]
βββ train2017
βββ val2017
βββ masks
ResNet-50 | ResNet-101 | Xception-65
βββ ./pretrained
βββ resnet50.pth
βββ resnet101.pth
βββ xception.pth
python train.py
python eval.pyWe thank ST++ for part of their codes, processed datasets, data partitions, and pretrained models.
If you find this repo useful for your research, please consider citing the paper as follows:
@ARTICLE{CISC_R2022,
author={Wu, Linshan and Fang, Leyuan and He, Xingxin and He, Min and Ma, Jiayi and Zhong, Zhun},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
title={Querying Labeled for Unlabeled: Cross-Image Semantic Consistency Guided Semi-Supervised Semantic Segmentation},
year={2023},
volume={45},
number={7},
pages={8827-8844},
doi={10.1109/TPAMI.2022.3233584}}