TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and...

22
TextonBoost TextonBoost : : Joint Appearance, Shape and Joint Appearance, Shape and Context Modeling for Multi- Context Modeling for Multi- Class Object Recognition and Class Object Recognition and Segmentation Segmentation J. Shotton J. Shotton * , J. Winn , J. Winn , C. Rother , C. Rother , , and and A. A. Criminisi Criminisi * University of Cambridge University of Cambridge Microsoft Research Ltd, Cambridge, UK Microsoft Research Ltd, Cambridge, UK
  • date post

    20-Dec-2015
  • Category

    Documents

  • view

    229
  • download

    0

Transcript of TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and...

Page 1: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

TextonBoostTextonBoost ::Joint Appearance, Shape and Context Joint Appearance, Shape and Context

Modeling for Multi-Class Object Modeling for Multi-Class Object Recognition and SegmentationRecognition and Segmentation

J. ShottonJ. Shotton**, J. Winn, J. Winn††, C. Rother, C. Rother††, , andand A. A. CriminisiCriminisi††

** University of Cambridge University of Cambridge†† Microsoft Research Ltd, Cambridge, UKMicrosoft Research Ltd, Cambridge, UK

Page 2: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

IntroductionIntroduction Simultaneous recognition and Simultaneous recognition and

segmentationsegmentation Explain every pixel (dense features)Explain every pixel (dense features) Appearance + shape + contextAppearance + shape + context Exploit class generalities + image Exploit class generalities + image

specificsspecifics

ContributionsContributions New low-level featuresNew low-level features New texture-based discriminative New texture-based discriminative

modelmodel Efficiency and scalabilityEfficiency and scalability

Example Results

Page 3: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Structure of PresentationStructure of Presentation

The MSRC 21-Class Object Recognition The MSRC 21-Class Object Recognition DatabaseDatabase

New ‘Shape Filter’ FeaturesNew ‘Shape Filter’ Features

Randomised boosting with Shared Randomised boosting with Shared FeaturesFeatures

Adapting to the Pascal VOC ChallengeAdapting to the Pascal VOC Challenge

Page 4: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Image DatabasesImage Databases

MSRC 21-Class Object Recognition DatabaseMSRC 21-Class Object Recognition Database 591 hand-labelled images ( 45% train, 10% validation, 45% test )591 hand-labelled images ( 45% train, 10% validation, 45% test )

CorelCorel ( 7-class ) and ( 7-class ) and SowerbySowerby ( 7-class ) ( 7-class ) [He [He et al.et al. CVPR 04] CVPR 04]

Page 5: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Sparse vs Dense FeaturesSparse vs Dense Features Successes using sparse features, e.g.Successes using sparse features, e.g.

[Sivic [Sivic et al.et al. ICCV 2005], ICCV 2005], [Fergus [Fergus et al.et al. ICCV 2005], [Leibe ICCV 2005], [Leibe et et al.al. CVPR 2005] CVPR 2005]

But…But… do not explain whole imagedo not explain whole image cannot cope well with all object classescannot cope well with all object classes

We use We use densedense features features ‘‘shape filters’shape filters’ local texture-based image descriptionslocal texture-based image descriptions

Cope withCope with textured and untextured objects, occlusions,textured and untextured objects, occlusions,

whilst retaining high efficiencywhilst retaining high efficiency

problem imagesfor sparse features?

Page 6: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

TextonsTextons Shape filters use Shape filters use textontexton maps maps

[Varma & Zisserman IJCV 05][Varma & Zisserman IJCV 05]

[Leung & Malik IJCV 01][Leung & Malik IJCV 01]

Compact and efficient characterisation of Compact and efficient characterisation of local texturelocal texture

Texton mapColours Texton Indices

Input image

Clustering

Filter Bank

Page 7: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Shape FiltersShape Filters

Pair:Pair:

Feature responses Feature responses vv((ii, , rr, , tt))

Integral imagesIntegral images

rectangle r texton t

( , )vv((ii11, , rr, , tt) = ) = aa

vv((ii22, , rr, , tt) = 0) = 0vv((ii33, , rr, , tt) = ) = a/2a/2

appearance context

Page 8: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

feature response imagev(i, r1, t1)

feature response imagev(i, r2, t2)

Shape and AppearanceShape and Appearance

( , )(r(r11, , tt11) =) =

( , )(r(r22, , tt22) =) =

tt11 tt22

tt33 tt44

tt00

texton map ground truth

texton map

Page 9: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

summed response imagesv(i, r1, t1) + v(i, r2, t2)

Shape and AppearanceShape and Appearance

( , )(r(r11, , tt11) =) =

( , )(r(r22, , tt22) =) =

tt11 tt22

tt33 tt44

tt00

texton map ground truth

texton map summed response imagesv(i, r1, t1) + v(i, r2, t2)

texton map

Page 10: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Shape-Texture PotentialsShape-Texture Potentials Joint Boost algorithmJoint Boost algorithm [Torralba [Torralba et al.et al. CVPR 2004] CVPR 2004]

iteratively combines many shape filtersiteratively combines many shape filters builds multi-class logistic classifierbuilds multi-class logistic classifier

Resulting combination exploits:Resulting combination exploits:

Shape-Texture potentials:Shape-Texture potentials:

shape-texture potentials logistic classifier

TextureShape Context (!)

Page 11: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Feature Selection by Feature Selection by Boosting Boosting

input image inferred segmentationcolour = most likely label

confidencewhite = high entropyblack = low entropy

30 rounds 2000 rounds1000 rounds

Page 12: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Feature Selection by Feature Selection by BoostingBoosting

input image confidencewhite = high entropyblack = low entropy

30 rounds 2000 rounds1000 rounds

inferred segmentationcolour = most likely label

Page 13: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

non-randomised boostingrandomised boosting

Randomised BoostingRandomised Boosting

Avoid expensive search over all featuresAvoid expensive search over all features only check random fraction (e.g. 0.3%) at each only check random fraction (e.g. 0.3%) at each

roundround over several thousand rounds probably try all over several thousand rounds probably try all

possible featurespossible featuresnon-randomised boostingrandomised boosting

Page 14: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Accurate Segmentation?Accurate Segmentation?

Shape-texture potentials Shape-texture potentials alonealone effectively recognise objectseffectively recognise objects but not sufficient for pixel-but not sufficient for pixel-

perfect segmentationperfect segmentation

Conditional Random Field Conditional Random Field (CRF) –(CRF) –see oral presentation see oral presentation tomorrow!tomorrow!

shape-texture

+ CRF

Page 15: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Adapting TextonBoost to Adapting TextonBoost to thethe

Pascal VOC ChallengePascal VOC Challenge

Page 16: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

TrainingTraining Pascal training data is bounding boxes.Pascal training data is bounding boxes. Need pixelwise labelling – use GrabCut based Need pixelwise labelling – use GrabCut based

on bounding box (noisy labelling!):on bounding box (noisy labelling!):

Add ‘background’ label for non-object Add ‘background’ label for non-object regions and train background class.regions and train background class.~1 day training time (for 10 classifiers on ~1 day training time (for 10 classifiers on 1/3 data)1/3 data)

Page 17: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

ResultsResults

Page 18: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Classification Classification (competition 1)(competition 1)

To give uncertainty measure, use only To give uncertainty measure, use only boosted softmax classifier and normalised boosted softmax classifier and normalised sum of classifier over all image pixels.sum of classifier over all image pixels.

bicycle bus car cat cow dog horse

motorbike

person

sheep

0.873 0.864

0.887

0.822

0.850

0.768

0.754

0.844 0.715

0.866

Area under curve (AUC)

VOC experiments by Jamie ShottonVOC experiments by Jamie Shotton

Test time: 30sec image (three seconds per classifier)Test time: 30sec image (three seconds per classifier)

Page 19: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Detection (competition Detection (competition 3)3)

Work in progress:Work in progress: scale/viewpoint invariant scale/viewpoint invariant Layout Consisent Random FieldLayout Consisent Random Field

Input image

Layout-consistent regions Instance labelling

T1

T2

T3 T1

T2

Page 20: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Detection (competition Detection (competition 3)3)

Work in progress:Work in progress: scale/viewpoint invariant scale/viewpoint invariant Layout Consisent Random FieldLayout Consisent Random Field

Instead, used connected-components of most Instead, used connected-components of most probable labelling (ignoring if <1000 pixels) probable labelling (ignoring if <1000 pixels) and then computed normalised sum (as and then computed normalised sum (as before)before)

bicycle bus car cat cow dog horse

motorbike

person

sheep

0.249 0.138

0.254

0.151

0.149

0.118

0.091

0.178 0.030

0.131

Average precision (AP)

Page 21: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Suggestions for Pascal Suggestions for Pascal VOC 2007VOC 2007

Include other types of object classes:Include other types of object classes: unstructured classes (e.g. sky, grass) unstructured classes (e.g. sky, grass) semi-structured classes (e.g. building).semi-structured classes (e.g. building).

Have small number of pixel-wise Have small number of pixel-wise labelled images and include a labelled images and include a segmentation competition.segmentation competition.

Keep it hard!!!Keep it hard!!!

Page 22: TextonBoost : Joint Appearance, Shape and Context Modeling for Multi-Class Object Recognition and Segmentation J. Shotton *, J. Winn †, C. Rother †, and.

Thank youThank you

TextonBoost code will be available shortly fromTextonBoost code will be available shortly from http://mi.eng.cam.ac.uk/~jdjs2/