Home

Awesome

News

Introduction

The official repository for "Mining Contextual Information Beyond Image for Semantic Segmentation". Our full code has been merged into sssegmentation. So, you can leverage sssegmentation to re-implement our results.

Abstract

This paper studies the context aggregation problem in semantic image segmentation. The existing researches focus on improving the pixel representations by aggregating the contextual information within individual images. Though impressive, these methods neglect the significance of the representations of the pixels of the corresponding class beyond the input image. To address this, this paper proposes to mine the contextual information beyond individual images to further augment the pixel representations. We first set up a feature memory module, which is updated dynamically during training, to store the dataset-level representations of various categories. Then, we learn class probability distribution of each pixel representation under the supervision of the ground-truth segmentation. At last, the representation of each pixel is augmented by aggregating the dataset-level representations based on the corresponding class probability distribution. Furthermore, by utilizing the stored dataset-level representations, we also propose a representation consistent learning strategy to make the classification head better address intra-class compactness and inter-class dispersion. The proposed method could be effortlessly incorporated into existing segmentation frameworks (e.g., FCN, PSPNet, OCRNet and DeepLabV3) and brings consistent performance improvements. Mining contextual information beyond image allows us to report state-of-the-art performance on various benchmarks: ADE20K, LIP, Cityscapes and COCO-Stuff.

Framework

img

Performance

COCOStuff-10k

SegmentorPretrainBackboneCrop SizeScheduleTrain/Eval SetmIoU/mIoU (ms+flip)Download
DeepLabV3ImageNet-1k-224x224R-50-D8512x512LR/POLICY/BS/EPOCH: 0.001/poly/16/110train/test38.84%/39.78%cfg | model | log
DeepLabV3ImageNet-1k-224x224R-101-D8512x512LR/POLICY/BS/EPOCH: 0.001/poly/16/110train/test39.84%/41.52%cfg | model | log
DeepLabV3ImageNet-1k-224x224S-101-D8512x512LR/POLICY/BS/EPOCH: 0.001/poly/32/150train/test41.18%/42.38%cfg | model | log
DeepLabV3ImageNet-1k-224x224HRNetV2p-W48512x512LR/POLICY/BS/EPOCH: 0.001/poly/16/110train/test39.77%/41.48%cfg | model | log
DeepLabV3ImageNet-22k-384x384ViT-Large512x512LR/POLICY/BS/EPOCH: 0.001/poly/16/110train/test44.27%/45.50%cfg | model | log

ADE20k

SegmentorPretrainBackboneCrop SizeScheduleTrain/Eval SetmIoU/mIoU (ms+flip)Download
DeepLabV3ImageNet-1k-224x224R-50-D8512x512LR/POLICY/BS/EPOCH: 0.01/poly/16/130train/val44.39%/45.97%cfg | model | log
DeepLabV3ImageNet-1k-224x224R-101-D8512x512LR/POLICY/BS/EPOCH: 0.01/poly/16/130train/val45.66%/47.27%cfg | model | log
DeepLabV3ImageNet-1k-224x224S-101-D8512x512LR/POLICY/BS/EPOCH: 0.004/poly/16/180train/val46.63%/47.39%cfg | model | log
DeepLabV3ImageNet-1k-224x224HRNetV2p-W48512x512LR/POLICY/BS/EPOCH: 0.004/poly/16/180train/val45.79%/47.46%cfg | model | log
DeepLabV3ImageNet-22k-384x384ViT-Large512x512LR/POLICY/BS/EPOCH: 0.01/poly/16/130train/val49.73%/50.99%cfg | model | log

CityScapes

SegmentorPretrainBackboneCrop SizeScheduleTrain/Eval SetmIoU (ms+flip)Download
DeepLabV3ImageNet-1k-224x224R-50-D8512x1024LR/POLICY/BS/EPOCH: 0.01/poly/16/440trainval/test79.97%cfg | model | log
DeepLabV3ImageNet-1k-224x224R-101-D8512x1024LR/POLICY/BS/EPOCH: 0.01/poly/16/440trainval/test82.10%cfg | model | log
DeepLabV3ImageNet-1k-224x224S-101-D8512x1024LR/POLICY/BS/EPOCH: 0.01/poly/16/500trainval/test81.51%cfg | model | log
DeepLabV3ImageNet-1k-224x224HRNetV2p-W48512x1024LR/POLICY/BS/EPOCH: 0.01/poly/16/500trainval/test82.54%cfg | model | log

LIP

SegmentorPretrainBackboneCrop SizeScheduleTrain/Eval SetmIoU/mIoU (flip)Download
DeepLabV3ImageNet-1k-224x224R-50-D8473x473LR/POLICY/BS/EPOCH: 0.01/poly/32/150train/val53.73%/54.08%cfg | model | log
DeepLabV3ImageNet-1k-224x224R-101-D8473x473LR/POLICY/BS/EPOCH: 0.01/poly/32/150train/val55.02%/55.42%cfg | model | log
DeepLabV3ImageNet-1k-224x224S-101-D8473x473LR/POLICY/BS/EPOCH: 0.007/poly/40/150train/val56.21%/56.34%cfg | model | log
DeepLabV3ImageNet-1k-224x224HRNetV2p-W48473x473LR/POLICY/BS/EPOCH: 0.007/poly/40/150train/val56.40%/56.99%cfg | model | log

Citation

If this code is useful for your research, please consider citing:

@inproceedings{jin2021mining,
    title={Mining Contextual Information Beyond Image for Semantic Segmentation},
    author={Jin, Zhenchao and Gong, Tao and Yu, Dongdong and Chu, Qi and Wang, Jian and Wang, Changhu and Shao, Jie},
    booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
    pages={7231--7241},
    year={2021}
}

@article{jin2022mcibi++,
    title={MCIBI++: Soft Mining Contextual Information Beyond Image for Semantic Segmentation},
    author={Jin, Zhenchao and Yu, Dongdong and Yuan, Zehuan and Yu, Lequan},
    journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
    year={2022},
    publisher={IEEE}
}