Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes...

58
Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the work done with : Chris Russell 1 , Pushmeet Kohli 1,2 , Paul Sturgess 1 , Karteek Alahari 1 , Philip H.S. Torr 1

Transcript of Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes...

Page 1: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Associative Hierarchical CRFs for Object Class Image

Segmentation

Ľubor Ladický1

1Oxford Brookes University 2Microsoft Research Cambridge

Based on the work done with :

Chris Russell1, Pushmeet Kohli1,2 , Paul Sturgess1 ,Karteek Alahari1 , Philip H.S. Torr1

Page 2: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 3: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 4: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Object-class Segmentation problem

MSRC Image Our Result

Aims to assign a label for each pixel of an image

Classifier trained on the training set

Performance evaluated on never seen test set

Page 5: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 6: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Datasets

MSRC Dataset591 images 320 x 213

21 classes

MSRC Image MSRC Image MSRC ImageGround Truth Ground Truth Ground Truth

Page 7: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Datasets

VOC2009 Dataset1499 training + 750 test images 500 x 375

20 foreground classes + 1 background class

VOC Image VOC Image VOC ImageGround Truth Ground Truth Ground Truth

Page 8: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Datasets

CamVid Dataset367 training + 233 test video frames 960 x 720

11 classes

CamVid Image CamVid Image CamVid ImageGround Truth Ground Truth Ground Truth

Page 9: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 10: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Pairwise CRF over Pixels

CRF

Shotton ECCV06

Page 11: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Pairwise CRF over Pixels

No quantization errors

Lacks long range interactions

Results oversmoothed

Better performance on CamVid & MSRC datasets

Page 12: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Pairwise CRF over Segments

Yang et al. CVPR07, Batra et al. CVPR08,

Shi, Malik PAMI2000, Comaniciu, Meer PAMI2002, Felzenschwalb, Huttenlocher, IJCV2004

Page 13: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Pairwise CRF over Segments

Allows long range interactions

Better performance for VOC dataset

Can not recover from incorrect segmentation

Impossible to obtain perfect unsupervised segmentation

Page 14: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Pairwise CRF over Segments

Allows long range interactions

Better performance for VOC dataset

Can not recover from incorrect segmentation

Impossible to obtain perfect unsupervised segmentation

Page 15: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Detection-driven Segmentation

Larlus et al. CVPR08, Felzenszwalb et al. CVPR08, Vedaldi et al. ICCV09

GrabCut

Detector

Page 16: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Detection-driven Segmentation

The best performance for VOC dataset

Can not be used for background classes

Can not recover from incorrect detection

Page 17: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 18: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Robust PN approach

Kohli, Ladický, Torr CVPR08

Page 19: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Robust PN approach

Segment consistency as a weak constraint

Robust to misleading segmentations

Allows multiple overlapping segmentations

General formulation not used in application

Unary and pairwise potentials only at the pixel level

Page 20: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Robust PN reformulation

Ladický, Russell, Kohli, Torr ICCV09

Page 21: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Old formulation of Robust PN potential

is equivalent to pairwise formulation

where

Robust PN reformulation

Ladický, Russell, Kohli, Torr ICCV09

Page 22: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Associative Hierarchical CRF

Allows unary potentials for region variables

Allows pairwise potentials for region variables

Allows multiple layers and multiple hierarchies

Zhu et al. NIPS2008, Lim et al. ICCV2009, Hinton 2002

Page 23: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Analysis of the new model

Ladický, Russell, Kohli, Torr ICCV09

Let's have one segmentation and potentials only over segment level

Page 24: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Analysis of the new model

Let's have one segmentation and potentials only over segment level

Energy of two pixels from the same clique is symmetric and semi-metric

Minimum will be segment-consistent

The cost of every segment consistent labelling is the same as the cost of the pairwise CRF labelling over segments

Equivalent to pairwise CRF over segmentsLadický, Russell, Kohli, Torr ICCV09

Page 25: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Associative Hierarchical CRF

Merges information over multiple scales

Allows multiple hierarchies

Allows long range interactions

Easy to learn weights

Interlayer connection limited(?) to associative relationship

Ladický, Russell, Kohli, Torr ICCV09

Page 26: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Comparison to other methods

Ladický, Russell, Kohli, Torr ICCV09

Robust PN Segment CRF Hierarchical CRF

Page 27: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Detectors inAssociative Hierarchical CRFs

Ladický, Alahari, Sturgess, Russell, Torr CVPR10 (submitted)

GrabCutDetector

Detector potential takes the form

where

Page 28: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Detectors inAssociative Hierarchical CRFs

Ladický, Alahari, Sturgess, Russell, Torr CVPR10 (submitted)

Special 2-label case of Robust PN

Allows multiple overlapping detections

Can recover from incorrect detection

Same inference methods may be applied as for Associative Hierarchical CRFs

We can distinguish between different instances of objects in the final result

Page 29: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Label co-occurrence in CRFs

Ladický, Russell, Kohli, Torr CVPR10 (submitted)

Possible labelling ?

Why not ?

Page 30: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Label co-occurrence in CRFs

Ladický, Russell, Kohli, Torr CVPR10 (submitted)

Our requirements

Global Energy function – no hard decisions

Invariance to number of pixels taking given label

Efficiency – should be tractable

Standard approaches

Hard decisions in the preprocessing step (Csurka et al. BMVC08)

Unary potential (Torralba et al. ICCV03)

Pairwise potential (Rabinovich et al. ICCV07, CVPR08)

Only solution : EC = C(L(x))

Page 31: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 32: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Multi-feature BoostedUnary Pixel Potential

Ladický, Russell, Kohli, Torr ICCV09Sturgess, Alahari, Ladický, Torr BMVC09

Unary likelihoods based on spatial configuration (Shotton et al. ECCV06)

Classifier trained using boosting

Page 33: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Multi-feature BoostedUnary Segment Potential

Ladický, Russell, Kohli, Torr ICCV09

Classifier trained using boosting

Page 34: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Other Potentials

Ladický, Russell, Kohli, Torr ICCV09Ladický, Russell, Kohli, Torr CVPR10 (submitted)

Ladický, Alahari, Sturgess, Russell, Torr CVPR10 (submitted)

• Intensity dependent pairwise pixel potential

• Colour EMD-distance dependent pairwise segment potential

• Detector potentials based on off-the-shelf detectors (Felzenszwalb et al. CVPR08, Vedaldi et al. ICCV09)

• Generatively trained Co-occurence potential

Page 35: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 36: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference over Hierarchical CRF

Russell, Ladický, Kohli, Torr AISTATS10 (submitted)

Page 37: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference over Hierarchical CRF

Problem is NP-hard

Any message passing algorithm (TRW-S, BP, ..) or ICM can be applied to pairwise model

αβ-swap (potentials must be semi-metric)

Ishikawa construction over (α-F-β transition)

αexpansion (potentials must be metric)

Reparametrization of interlayer connection to metric potential

Ishikawa construction over (α-F-old transition)

For more details read our technical report

Russell, Ladický, Kohli, Torr AISTATS10 (submitted)

Page 38: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference over Hierarchical CRF

Problem is NP-hard

Any message passing algorithm (TRW-S, BP, ..), ICM or LP relaxation can be applied to pairwise model

αβ-swap (potentials must be semi-metric)

Ishikawa construction over (α-F-β transition)

αexpansion (potentials must be metric)

Reparametrization of interlayer connection to metric potential

Ishikawa construction over (α-F-old transition)

For more details read our technical report

Russell, Ladický, Kohli, Torr AISTATS10 (submitted)

Page 39: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference over Hierarchical CRF

Problem is NP-hard

Any message passing algorithm (TRW-S, BP, ..), ICM or LP relaxation can be applied to pairwise model

• αβ-swap (potentials must be semi-metric)

• Ishikawa construction over (α-F-β transition)

αexpansion (potentials must be metric)

Reparametrization of interlayer connection to metric potential

Ishikawa construction over (α-F-old transition)

For more details read our technical report

Russell, Ladický, Kohli, Torr AISTATS10 (submitted)

Page 40: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference over Hierarchical CRF

Problem is NP-hard

Any message passing algorithm (TRW-S, BP, ..), ICM or LP relaxation can be applied to pairwise model

• αβ-swap (potentials must be semi-metric)

• Ishikawa construction over (α-F-β transition)

• α-expansion (potentials must be metric)

• Reparametrization of interlayer connection to metric potential

• Ishikawa construction over (α-F-old transition)

Russell, Ladický, Kohli, Torr AISTATS10 (submitted)

Page 41: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference over Hierarchical CRF

Russell, Ladický, Kohli, Torr AISTATS10 (submitted)

Page 42: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Inference for Co-occurence

Integer programming formulation possible using one variable for each subset of the label set

LP relaxation applicable by relaxing IP program

• αβ-swap possible if the cooccurence cost C(L(x)) is monotonically increasing with respect to L(x)

• α-expansion approximate move possible if the cooccurence cost C(L(x)) is monotonically increasing with respect to L(x)

Ladický, Russell, Kohli, Torr CVPR10 (submitted)

Page 43: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Overview

Object-class Segmentation problem

Datasets

MSRC dataset

VOC2009 dataset

CamVid dataset

Standard approaches

Pairwise CRF over Pixels

Pairwise CRF over Segments

Detection-driven Segmentation

Model

Robust-PN model

Associative Hierarchical CRF

Detectors in AHCRF

Label co-occurrence in CRFs

Potential training

Inference

Results

Discussion

General overview Our approach

Page 44: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

VOC2009 Results

Page 45: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

VOC2009 Results

Page 46: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

VOC2009 Results

Page 47: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

MSRC Results

Page 48: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

MSRC Results

Qualitative comparison of results without and with co-occurence

Ladický, Russell, Kohli, Torr CVPR10 (submitted)

MSRC Image MSRC ImageWithout CO With CO With COWithout CO

Page 49: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

CamVid Results

Sturgess, Alahari Ladický, Torr BMVC09Ladický, Alahari, Sturgess, Russell, Torr CVPR10 (submitted)

Our Result

CamVid Image

GroundTruth

Brostow et al.

Page 50: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Qualitative comparisons

Quantitative comparison of methods on VOC2009 dataset

Quantitative comparison of methods on MSRC dataset

Quantitative comparison of methods on CamVid dataset

Page 51: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Page 52: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Use our model

Page 53: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Use our model

• Use your favourite potentials

Page 54: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Use our model

• Use your favourite potentials

• Use your friend's favourite potentials

Page 55: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Use our model

• Use your favourite potentials

• Use your friend's favourite potentials

• Use your friend's friend's favourite potentials

Page 56: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Use our model

• Use your favourite potentials

• Use your friend's favourite potentials

• Use your friend's friend's favourite potentials

• Vision solved

Page 57: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Take home message

Use our model

• Use your favourite potentials

• Use your friend's favourite potentials

• Use your friend's friend's favourite potentials

• Vision solved (..almost)

Page 58: Associative Hierarchical CRFs for Object Class Image Segmentation Ľubor Ladický 1 1 Oxford Brookes University 2 Microsoft Research Cambridge Based on the.

Thank you

Questions?