Pseudo-mask Matters in Weakly-supervised Semantic Segmentation

Overview

Pseudo-mask Matters in Weakly-supervised Semantic Segmentation

By Yi Li, Zhanghui Kuang, Liyang Liu, Yimin Chen, Wayne Zhang

SenseTime, Tsinghua University

Table of Contents

  1. Introduction
  2. Classification
  3. Segmentation
  4. License

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.

Classification

Data Preparation

  1. Download VOC12 OneDrive, BaiduYun
  2. Download COCO14 BaiduYun
  3. Download pretrained models OneDrive, BaiduYun

(extract code of BaiduYun: mtci)

Get Started

git clone https://github.com/Eli-YiLi/PMM
cd PMM
ln -s [path to model files] models
ln -s [path to VOC12] voc12
ln -s [path to COCO14] coco14
pip3 install -r requirements.txt
bash slurm_run.sh [partition name] [dataset name] / bash dist_run.sh [dataset name]

Segmentation

Please refer to WSSS_MMSeg

License

Please refer to: LICENSE.

Comments
  • Segmentation fault (core dumped)

    Segmentation fault (core dumped)

    Hi, Thanks for your code!

    When I used your code to run experiments on the COCO dataset. We used the 8 v100 32g card. Although I set the bs=4, When infer, eval cam and PPMG, I had met the following error,

    THCudaCheck FAIL file=/pytorch/aten/src/THC/THCCachingHostAllocator.cpp line=296 error=2 : out of memory Segmentation fault (core dumped)

    Could you please give me some advice?

    Best wishes to you!

    opened by zwy1996 6
  • Some questions about the performance of CAM(resnet38d) in this paper

    Some questions about the performance of CAM(resnet38d) in this paper

    Hi @Eli-YiLi , Thanks for sharing your nice work!

    I notice that you report the CAM result on ResNet38d. However, in your released code, you only use the resent38d to generate CAM at training multiscale stage. Then, you use the scalenet101 as backbone to train the network at multi-crop stage. So the CAM result on ResNet38d (57.32%) is achieved with a hybrid manner (First train on resnet38d, followed by scalenet101)? I think only train with the resnet38d should be more appropriate.

    opened by YeRen123455 5
  • About args.gen_seg_mask

    About args.gen_seg_mask

    When I generate mask on COCO2017. It seems need to a lot of time to finish this work. I use 8 T4 or 2 RTX3090 to test the speed. Both of them get 200 .npy files for an hour. It means I need nearly 11 days to generate mask. Could you tell me. What can I do for speed up this code?Thanks.

    opened by ZechengLi19 2
  • OneDrive link for Data Preparation

    OneDrive link for Data Preparation

    Thank you for sharing your great work!

    Now, I gonna try to run your source code, however, the OneDrive link is not valid.

    Could you update the link or share using other cloud services such as google-drive or dropbox?

    I cannot access Baidu :(

    opened by qjadud1994 2
  • Trained COCO14 Classification Model

    Trained COCO14 Classification Model

    Greetings! I am your truly sincere follower! I found that the training cost of COCO14 classification is to heavy. Could you please share the trained COCO14 classification model?

    opened by Unrealluver 1
Owner
null
Learning Pixel-level Semantic Affinity with Image-level Supervision for Weakly Supervised Semantic Segmentation, CVPR 2018

Learning Pixel-level Semantic Affinity with Image-level Supervision This code is deprecated. Please see https://github.com/jiwoon-ahn/irn instead. Int

Jiwoon Ahn 337 Dec 15, 2022
[CVPR 2021] Semi-Supervised Semantic Segmentation with Cross Pseudo Supervision

TorchSemiSeg [CVPR 2021] Semi-Supervised Semantic Segmentation with Cross Pseudo Supervision by Xiaokang Chen1, Yuhui Yuan2, Gang Zeng1, Jingdong Wang

Chen XiaoKang 387 Jan 8, 2023
[CVPR 2022] Semi-Supervised Semantic Segmentation Using Unreliable Pseudo-Labels

Using Unreliable Pseudo Labels Official PyTorch implementation of Semi-Supervised Semantic Segmentation Using Unreliable Pseudo Labels, CVPR 2022. Ple

Haochen Wang 268 Dec 24, 2022
DCT-Mask: Discrete Cosine Transform Mask Representation for Instance Segmentation

DCT-Mask: Discrete Cosine Transform Mask Representation for Instance Segmentation This project hosts the code for implementing the DCT-MASK algorithms

Alibaba Cloud 57 Nov 27, 2022
git《Pseudo-ISP: Learning Pseudo In-camera Signal Processing Pipeline from A Color Image Denoiser》(2021) GitHub: [fig5]

Pseudo-ISP: Learning Pseudo In-camera Signal Processing Pipeline from A Color Image Denoiser Abstract The success of deep denoisers on real-world colo

Yue Cao 51 Nov 22, 2022
A Comprehensive Analysis of Weakly-Supervised Semantic Segmentation in Different Image Domains (IJCV submission)

wsss-analysis The code of: A Comprehensive Analysis of Weakly-Supervised Semantic Segmentation in Different Image Domains, arXiv pre-print 2019 paper.

Lyndon Chan 48 Dec 18, 2022
Context Decoupling Augmentation for Weakly Supervised Semantic Segmentation

Context Decoupling Augmentation for Weakly Supervised Semantic Segmentation The code of: Context Decoupling Augmentation for Weakly Supervised Semanti

null 54 Dec 12, 2022
Discriminative Region Suppression for Weakly-Supervised Semantic Segmentation

Discriminative Region Suppression for Weakly-Supervised Semantic Segmentation (AAAI 2021) Official pytorch implementation of our paper: Discriminative

Beom 74 Dec 27, 2022
Anti-Adversarially Manipulated Attributions for Weakly and Semi-Supervised Semantic Segmentation (CVPR 2021)

Anti-Adversarially Manipulated Attributions for Weakly and Semi-Supervised Semantic Segmentation Input Image Initial CAM Successive Maps with adversar

Jungbeom Lee 110 Dec 7, 2022
Code for the paper One Thing One Click: A Self-Training Approach for Weakly Supervised 3D Semantic Segmentation, CVPR 2021.

One Thing One Click One Thing One Click: A Self-Training Approach for Weakly Supervised 3D Semantic Segmentation (CVPR2021) Code for the paper One Thi

null 44 Dec 12, 2022
DiscoBox: Weakly Supervised Instance Segmentation and Semantic Correspondence from Box Supervision

The Official PyTorch Implementation of DiscoBox: Weakly Supervised Instance Segmentation and Semantic Correspondence from Box Supervision

Shiyi Lan 3 Oct 15, 2021
Reducing Information Bottleneck for Weakly Supervised Semantic Segmentation (NeurIPS 2021)

Reducing Information Bottleneck for Weakly Supervised Semantic Segmentation (NeurIPS 2021) The implementation of Reducing Infromation Bottleneck for W

Jungbeom Lee 81 Dec 16, 2022
The PyTorch implementation of DiscoBox: Weakly Supervised Instance Segmentation and Semantic Correspondence from Box Supervision.

DiscoBox: Weakly Supervised Instance Segmentation and Semantic Correspondence from Box Supervision The PyTorch implementation of DiscoBox: Weakly Supe

Shiyi Lan 1 Oct 23, 2021
Perturbed Self-Distillation: Weakly Supervised Large-Scale Point Cloud Semantic Segmentation (ICCV2021)

Perturbed Self-Distillation: Weakly Supervised Large-Scale Point Cloud Semantic Segmentation (ICCV2021) This is the implementation of PSD (ICCV 2021),

null 12 Dec 12, 2022
Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localization and Semantic Segmentation (CVPR 2022)

CCAM (Unsupervised) Code repository for our paper "CCAM: Contrastive learning of Class-agnostic Activation Map for Weakly Supervised Object Localizati

Computer Vision Insitute, SZU 113 Dec 27, 2022
[CVPR'22] Weakly Supervised Semantic Segmentation by Pixel-to-Prototype Contrast

wseg Overview The Pytorch implementation of Weakly Supervised Semantic Segmentation by Pixel-to-Prototype Contrast. [arXiv] Though image-level weakly

Ye Du 96 Dec 30, 2022
Official PyTorch implementation for paper Context Matters: Graph-based Self-supervised Representation Learning for Medical Images

Context Matters: Graph-based Self-supervised Representation Learning for Medical Images Official PyTorch implementation for paper Context Matters: Gra

null 49 Nov 23, 2022
Face Mask Detection is a project to determine whether someone is wearing mask or not, using deep neural network.

face-mask-detection Face Mask Detection is a project to determine whether someone is wearing mask or not, using deep neural network. It contains 3 scr

amirsalar 13 Jan 18, 2022
The Face Mask recognition system uses AI technology to detect the person with or without a mask.

Face Mask Detection Face Mask Detection system built with OpenCV, Keras/TensorFlow using Deep Learning and Computer Vision concepts in order to detect

Rohan Kasabe 4 Apr 5, 2022