1 of 28

Weakly Supervised Segmentation

Jike Zhong, Wenjin Fu, Tianle Chen

2 of 28

What is Weakly Supervision

  • Incomplete Supervision

  • Inexact Supervision

  • Inaccurate Supervision

3 of 28

Incomplete

Only a (usually small) subset of training data is given with labels while the other data remain unlabeled

  • There are two major techniques for this purpose
  • Active learning
  • Semi-supervised learning
    1. generative methods
    2. graph-based methods
    3. low-density separation methods
    4. disagreement-based methods.

4 of 28

Inaccurate Supervision

Inaccurate supervision concerns the situation in which the supervision information is not always ground-truth

  • Scenario is learning with label noise
  • Scenario of inaccurate supervision occurs with crowdsourcing

5 of 28

Inexact Supervision

Inexact supervision concerns the situation in which some supervision information is given, but not as exact as desired

  • Typical scenario is when only coarse-grained label information is available.
    • Detection / Segmentation with only image level label

6 of 28

Weakly Supervised Semantic Segmentation (WSSS)

  • Task of semantic segmentation
  • Challenges of this task (why we need WSSS)
  • Task of WSSS

7 of 28

Different Approach on WSSS

  • CNN-Base Approach
  • FCN-Base Approach
  • Structural causal
  • GAN-Base Approach
  • Coseg-Base Approach
  • CAM-Base Approach

8 of 28

Learning Deep Features for Discriminative Localization��Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, Antonio Torralba

CVPR 2016

9 of 28

Motivation

10 of 28

Motivation & CNN Review

11 of 28

Architecture: CAM

Last layer of conv

softmax

12 of 28

Architecture: CAM

→ activation of unit k in the last convolutional layer

→ global average pooling (GAP)

→ input to the softmax for a given class c

→ weight corresponding to class c for unit k

(importance of Fk for class c)

→ output of the softmax for class c

Class activation map (CAM)

Last layer of conv

softmax

13 of 28

Results

Comparison of the localization from GoogleNet-Gap (uppper two) and the backpropagation using AlexNet (lower two)

14 of 28

Applications

Weakly-Supervised Object Detection

Weakly-Supervised text detector

Visual Question Answering

15 of 28

Weakly-supervised on non-CAM base method: Co-segmentation

Deep Object Co-segmentation via Spatial-Semantic Network Modulation

Kaihua Zhang, Jin Chen, Bo Liu, Qingshan

AAAI 2019

16 of 28

Beyond CAM - Puzzle CAM:

Motivation

  • Traditional CAM only focuses on the most discriminative area.
  • Tiled images (b) produce different CAMS compared to whole image (a).
  • Motivation: Adapting an Attention-Based feature learning method (right).

17 of 28

Puzzle CAM: Overall Architecture

  • Puzzle Module + Reconstructing Regularization

18 of 28

Puzzle CAM: Puzzle Module

  • Generic CAM:

A = Σc(argmax (Ac = θc⊤f ))

(θc: weights of the c-channel classifier; f = F(I): feature map)

  • Puzzle CAM:

I -> {I1,1, I1,2, I2,1, I2,2} (I is the input image)

Obtain all Ai,j for each Ii,j

Merge Ai,j into single A

19 of 28

Puzzle CAM: Loss Design

  • 2 classification losses, one for original

image, one for reconstructed image

(area estimation)

  • 1 reconstructing regularization (narrow

the gaps between the pixel- and

image-level supervision processes)

  • Overall loss

20 of 28

Puzzle CAM - Enhancement: Affinity Net

  • Left: Semantic affinity between two features
  • Right: Architecture of affinity net

21 of 28

Puzzle CAM: Pseudo Mask Quality

  • Pseudo semantic segmentation labels in mIoU, evaluated on the PASCAL VOC 2012 training set. RW, random walk with AffinityNet; dCRF, dense conditional random field

22 of 28

Puzzle CAM: Results

  • Obtained on PASCAL VOC 2012 Val set

Original images

Ground Truth

Res from Puzzle-CAM

23 of 28

Puzzle CAM: Results

  • Obtained on PASCAL VOC 2012 Val set
  • Comparing to State-Of-The-Art

24 of 28

Extended CAM-Based Work

Dilated convolution

Multi-layer feature fusion

Saliency-guided iterative training

Stochastic feature selection

25 of 28

Extended CAM-Based Work

Dilated convolution

Multi-layer feature fusion

Saliency-guided iterative training

Stochastic feature selection

26 of 28

Extended CAM-Based Work

Dilated convolution

Multi-layer feature fusion

Saliency-guided iterative training

Stochastic feature selection

27 of 28

Extended CAM-Based Work

Dilated convolution

Multi-layer feature fusion

Saliency-guided iterative training

Stochastic feature selection

28 of 28

Extended Work

CIAN: Cross-Image Affinity Net for Weakly Supervised Semantic Segmentation