Home

Awesome

AWT-for-CISS (WACV 2023) Paper

Official repository for our paper on "Attribution-aware Weight Transfer: A Warm-Start Initialization for Class-Incremental Semantic Segmentation".

<img src="https://github.com/dfki-av/AWT-for-CISS/blob/main/figs/AWT.png" width="100%" height="100%">

Abstract

In class-incremental semantic segmentation (CISS), deep learning architectures suffer from the critical problems of catastrophic forgetting and semantic background shift. Although recent works focused on these issues, existing classifier initialization methods do not address the background shift problem and assign the same initialization weights to both background and new foreground class classifiers. We propose to address the background shift with a novel classifier initialization method which employs gradient-based attribution to identify the most relevant weights for new classes from the classifier's weights for the previous background and transfers these weights to the new classifier. This warm-start weight initialization provides a general solution applicable to several CISS methods. Furthermore, it accelerates learning of new classes while mitigating forgetting. Our experiments demonstrate significant improvement in mIoU compared to the state-of-the-art CISS methods on the Pascal-VOC 2012, ADE20K and Cityscapes datasets.

@inproceedings{goswami2023attribution,
  title={Attribution-aware Weight Transfer: A Warm-Start Initialization for Class-Incremental Semantic Segmentation},
  author={Goswami, Dipam and Schuster, Ren{\'e} and van de Weijer, Joost and Stricker, Didier},
  booktitle={Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision},
  pages={3195--3204},
  year={2023}
}

Requirements

Follow the installation requirements from Douillard et al.'s repository.

Additionally, install captum.

pip install captum

Download the pretrained weights for the ResNet backbone

mkdir pretrained
wget https://github.com/arthurdouillard/CVPR2021_PLOP/releases/download/v1.0/resnet101_iabn_sync.pth.tar -O ./pretrained/resnet101_iabn_sync.pth.tar

The default is to use a pretraining for the backbone used, that is in the pretrained folder of the project. We used the pretrained model released by the authors of In-place ABN (as done by PLOP), that can be found here: link.

Execution

run.py can be used for training individual tasks/increments. It comes with a set of command line options. The most important ones are given in the following.

Parameters

The default parameters will replicate our experiments.

attribute.py is used to obtain the attribution maps corresponding to every new class and then get the significant classifier channels for weight transfer. Alternatively, attribute_class.py can be used to obtain the attributions and significant classifier channels corresponding to the set of all new classes.

Training

You can use one of the provided scripts in the scripts folder that will launch every step of a continual training.

For example, do

bash scripts/cityscapes/mib_cityscapes_14-1.sh

to train the entire 14-1 setting (6 tasks) on Cityscapes with MiB.

To train models for MiB+AWT, set the --att parameter to 25.

This repository is a modified version of Douillard et al.'s repository.