Home

Awesome

SFC: Shared Feature Calibration in Weakly Supervised Semantic Segmentation

<img style="zoom:100%" alt="framework" src='fig/framework1.png'>

The implementation of SFC: Shared Feature Calibration in Weakly Supervised Semantic Segmentation, Xinqiao Zhao*, Feilong Tang*, Xiaoyang Wang, Jimin Xiao, AAAI 2024.

Abstract

Image-level weakly supervised semantic segmentation has received increasing attention due to its low annotation cost. Existing methods mainly rely on Class Activation Mapping (CAM) to obtain pseudo labels for training semantic segmentation models. In this work, we demonstrate that the long-tailed distribution in the training set can cause the CAM calculated through the classifier weights over-activated for the head classes and under-activated for the tail classes due to the shared features among different classes. This degrades the CAM quality and further influences the final semantic segmentation performances. To address this issue, we propose a Shared Feature Calibration (SFC) method for CAM generation. Specifically, we leverage the class prototypes which carry positive shared features and propose a Multi-Scaled ROCon-Weighted (MSRW) consistency loss for narrowing the gap between the CAMs generated through the classifier weights and class prototypes during training, and further combine these CAMs during inference, thereby solving the head-class over-activation and tail-class under-activation issues. Experimental results show that our SFC can significantly improve the CAM boundaries and achieve new state-of-the-art performances.

Environment

Usage

Step 1. Prepare Dataset

Step 2. Train SFC

# PASCAL VOC 2012
bash run_voc.sh

# MS COCO 2014
bash run_coco.sh

Step 3. Train Fully Supervised Segmentation Models

To train fully supervised segmentation models, we refer to deeplab-pytorch and seamv1.

Citation

@inproceedings{zhao2024sfc,
  title={Sfc: Shared feature calibration in weakly supervised semantic segmentation},
  author={Zhao, Xinqiao and Tang, Feilong and Wang, Xiaoyang and Xiao, Jimin},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={38},
  number={7},
  pages={7525--7533},
  year={2024}
}