Eli-YiLi / WSSS_MMSeg

Pseudo-mask Matters in Weakly-supervised Semantic Segmentation
Apache License 2.0
18 stars 3 forks source link
mmsegmentation pytorch weakly-supervised-segmentation

Weakly-supervised Semantic Segmentation part

Introduction

This is a PyTorch implementation of Pseudo-mask Matters in Weakly-supervised Semantic Segmentation.(ICCV2021).

In this paper, we propose Coefficient of Variation Smoothing and Proportional Pseudo-mask Generation to generate high quality pseudo-mask in classification part. In segmentation part, we propose Pretended Under-Fitting strategy and Cyclic Pseudo-mask for better utilization of pseudo-mask.

Data Preparation

  1. Download VOC12 OneDrive, BaiduYun
  2. Download COCO14 BaiduYun
  3. Download pretrained models OneDrive, BaiduYun (extract code of BaiduYun: mtci)

Get Started

(data preparation)
git clone https://github.com/Eli-YiLi/WSSS_MMSeg.git
cd WSSS_MMSeg
mkdir data
cd data
ln -s [path to model files] models
ln -s [path to VOC12] voc12
ln -s [path to COCO14] coco2014
ln -s [path to your voc pseudo-mask] voc12/VOC2012/ppmg
ln -s [path to your coco pseudo-mask] coco2014/voc_format/ppmg

(install mmsegmentation(our version is 0.8.0) and mmcv(our version is 1.1.4) as MMSegmentation part)

(train and val, slurm)
bash tools/run_wsss.sh [Partition] [Dataset] [Architecture]

Other Data

  1. Pseudomasks (if you want to skip cls phase), VOC12OneDrive COCO14_BaiduYun
  2. Release Weights BaiduYun (extract code of BaiduYun: mtci)

MMSegmentation part


PyPI docs badge codecov license issue resolution open issues

Documentation: https://mmsegmentation.readthedocs.io/

Introduction

MMSegmentation is an open source semantic segmentation toolbox based on PyTorch. It is a part of the OpenMMLab project.

The master branch works with PyTorch 1.3 to 1.6.

demo image

Major features

License

This project is released under the Apache 2.0 license.

Changelog

v0.7.0 was released in 07/10/2020. Please refer to changelog.md for details and release history.

Benchmark and model zoo

Results and models are available in the model zoo.

Supported backbones:

Supported methods:

Installation

Please refer to INSTALL.md for installation and dataset preparation.

Get Started

Please see getting_started.md for the basic usage of MMSegmentation. There are also tutorials for adding new dataset, designing data pipeline, and adding new modules.

A Colab tutorial is also provided. You may preview the notebook here or directly run on Colab.

Contributing

We appreciate all contributions to improve MMSegmentation. Please refer to CONTRIBUTING.md for the contributing guideline.

Acknowledgement

MMSegmentation is an open source project that welcome any contribution and feedback. We wish that the toolbox and benchmark could serve the growing research community by providing a flexible as well as standardized toolkit to reimplement existing methods and develop their own new semantic segmentation methods.