part-based and local feature models for generic object...

72
Part-based and local feature models for generic object recognition May 28 th , 2015 Yong Jae Lee UC Davis

Upload: others

Post on 18-Aug-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Part-based and local feature models for generic object recognition

May 28th, 2015

Yong Jae LeeUC Davis

Page 2: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Announcements

• PS2 grades up on SmartSite• PS2 stats:

– Mean: 80.15– Standard Dev: 22.77

• Vote on piazza for last lecture content

2

Page 3: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Support Vector Machines (SVMs)

• Discriminative classifier based on optimal separating line (for 2d case)

• Maximize the marginbetween the positive and negative training examples

3

Page 4: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

SVMs for recognition1. Define your representation for each

example.

2. Select a kernel function.

3. Compute pairwise kernel values between labeled examples

4. Use this “kernel matrix” to solve for SVM support vectors & weights.

5. To classify a new example: compute kernel values between new input and support vectors, apply weights, check sign of output.

4

Page 5: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Example: learning gender with SVMs

Moghaddam and Yang, Learning Gender with Support Faces, TPAMI 2002.

Moghaddam and Yang, Face & Gesture 2000.5

Page 6: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Moghaddam and Yang, Learning Gender with Support Faces, TPAMI 2002.

Processed faces

Face alignment processing

6

Page 7: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

• Training examples:– 1044 males– 713 females

• Experiment with various kernels, select Gaussian RBF

Learning gender with SVMs

)2

exp(),( 2

2

σji

ji

xxxx

−−=K

7

Page 8: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Support Faces

Moghaddam and Yang, Learning Gender with Support Faces, TPAMI 2002. 8

Page 9: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Moghaddam and Yang, Learning Gender with Support Faces, TPAMI 2002. 9

Page 10: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Gender perception experiment:How well can humans do?

• Subjects: – 30 people (22 male, 8 female)– Ages mid-20’s to mid-40’s

• Test data:– 254 face images– Low res (6 males, 4 females)– High res versions

• Task:– Classify as male or female, forced choice– No time limit

Moghaddam and Yang, Face & Gesture 2000.10

Page 11: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Moghaddam and Yang, Face & Gesture 2000.

Gender perception experiment:How well can humans do?

Error Error11

Page 12: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Human vs. Machine

• SVMs performed better than any single human test subject, at either resolution

12

Page 13: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Hardest examples for humans

Moghaddam and Yang, Face & Gesture 2000. 13

Page 14: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Questions

• What if the features are not 2d?• What if the data is not linearly separable?• What if we have more than just two

categories?

14

Page 15: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Multi-class SVMs• Achieve multi-class classifier by combining a number of

binary classifiers

• One vs. all– Training: learn an SVM for each class vs. the rest– Testing: apply each SVM to test example and assign

to it the class of the SVM that returns the highest decision value

• One vs. one– Training: learn an SVM for each pair of classes– Testing: each learned SVM “votes” for a class to

assign to the test example15

Page 16: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

SVMs: Pros and cons• Pros

– Many publicly available SVM packages:http://www.kernel-machines.org/software

– http://www.csie.ntu.edu.tw/~cjlin/libsvm/– Kernel-based framework is very powerful, flexible– Often a sparse set of support vectors – compact at test time– Work very well in practice, even with very small training

sample sizes

• Cons– No “direct” multi-class SVM, must combine two-class SVMs– Can be tricky to select best kernel function for a problem– Computation, memory

• During training time, must compute matrix of kernel values for every pair of examples

• Learning can take a very long time for large-scale problems

Adapted from Lana Lazebnik

16

Page 17: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Previously

• Discriminative classifiers– Boosting – Nearest neighbors– Support vector machines

• Useful for object recognition when combined with “window-based” or holistic appearance descriptors

17

Page 18: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Global window-based appearance representations

• These examples are truly global; each pixel in the window contributes to the representation.

• Classifier can account for relative relevance…• When might this not be ideal?

GistHistograms of

oriented gradients

Map of local orientations

Kristen Grauman

18

Page 19: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Part-based and local feature models for recognition

Main idea:

Rather than a representation based on holistic appearance, decompose the image into:

• local parts or patches, and

• their relative spatial relationships

Kristen Grauman

19

Page 20: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Part-based and local feature models for recognition

We’ll look at three forms:

1. Bag of words (no geometry)

2. Implicit shape model (star graph for spatial model)

3. Constellation model (fully connected graph for spatial model)

Kristen Grauman

20

Page 21: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

• Summarize entire image based on its distribution (histogram) of word occurrences.

– Total freedom on spatial positions, relative geometry.

– Vector representation easily usable by most classifiers.

Bag-of-words model

Kristen Grauman

21

Page 22: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Csurka et al. Visual Categorization with Bags of Keypoints, 2004

Bag-of-words model

22

Page 23: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Words as parts

Csurka et al. 2004

All local features Local features from two selected clusters

occurring in this image23

Page 24: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Naïve Bayes model for classification

)|()( cwpcp

Prior prob. of the object classes

Image likelihoodgiven the class

∏=

=N

nn cwpcp

1

)|()(

Object classdecision

∝)|( wcpc

c maxarg=∗

What assumptions does the model make, and what are their significance?

𝑁𝑁 patches

24

Page 25: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Csurka et al. 2004

Confusion matrix

Example bag of words + Naïve Bayes classification results for generic categorization of objects

25

Page 26: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Clutter…or context?

Kristen Grauman

26

Page 27: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Specific object Category

Sampling strategies

Kristen Grauman

27

Page 28: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Sampling strategies

Image credits: F-F. Li, E. Nowak, J. Sivic

Dense, uniformly Sparse, at interest points

Randomly

Multiple interest operators

• To find specific, textured objects, sparse sampling from interest points more reliable.

• Multiple complementary interest operators offer more image coverage.

• For object categorization, dense sampling offers better coverage.

[See Nowak, Jurie & Triggs, ECCV 2006] Kristen Grauman

28

Page 29: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Local feature correspondence for generic object categories

Kristen Grauman

29

Page 30: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

• Comparing bags of words histograms coarsely reflects agreement between local “parts” (patches, words).

• But choice of quantization directly determines what we consider to be similar…

Local feature correspondence for generic object categories

Kristen Grauman30

Page 31: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Partially matching sets of features

We introduce an approximate matching kernel that makes it practical to compare large sets of features based on their partial correspondences.

Optimal match: O(m3)Greedy match: O(m2 log m)Pyramid match: O(m)

(m=num pts)

[Previous work: Indyk & Thaper, Bartal, Charikar, Agarwal & Varadarajan, …]

Kristen Grauman31

Page 32: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Pyramid match: main idea

descriptor space

Feature space partitions serve to “match” the local descriptors within successively wider regions.

[Grauman & Darrell, ICCV 2005]32

Page 33: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Pyramid match: main idea

Histogram intersection counts number of possible matches at a given partitioning.

[Grauman & Darrell, ICCV 2005]33

Page 34: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Pyramid match kernel

• For similarity, weights inversely proportional to bin size(or may be learned)

• Normalize these kernel values to avoid favoring large sets

measures difficulty of a

match at level

number of newly matched pairs at level

[Grauman & Darrell, ICCV 2005]34

Page 35: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Pyramid match kernel

optimal partial matching

Optimal match: O(m3)Pyramid match: O(mL)

[Grauman & Darrell, ICCV 2005]35

Page 36: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Highlights of the pyramid match

• Linear time complexity

• Formal bounds on expected error

• Mercer kernel

• Data-driven partitions allow accurate matches even in high-dim. feature spaces

• Strong performance on benchmark object recognition datasets

Kristen Grauman36

Page 37: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Example recognition results: Caltech-101 dataset

Data provided by Fei-Fei, Fergus, and Perona

• 101 categories 40-800 images per class

37

Page 38: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Jain, Huynh, & Grauman (2007)

Recognition results: Caltech-101 dataset

38

Page 39: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Unordered sets of local features:No spatial layout preserved!

Too much? Too little?

40

Page 40: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

[Lazebnik, Schmid & Ponce, CVPR 2006]

• Make a pyramid of bag-of-words histograms.• Provides some loose (global) spatial layout information

Spatial pyramid match

Sum over PMKs computed in image coordinate space, one per word.

Kristen Grauman41

Page 41: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Confusion matrix

Spatial pyramid matchCaptures scene categories well---texture-like patterns but with some variability in the positions of all the local pieces.

Kristen Grauman42

Page 42: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Captures scene categories well---texture-like patterns but with some variability in the positions of all the local pieces.

Spatial pyramid match

Kristen Grauman43

Page 43: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Part-based and local feature models for recognition

We’ll look at three forms:

1. Bag of words (no geometry)

2. Implicit shape model (star graph for spatial model)

3. Constellation model (fully connected graph for spatial model)

Kristen Grauman

44

Page 44: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Shape representation in part-based models

x1

x3

x4

x6

x5

x2

“Star” shape model

e.g. implicit shape model Parts mutually independent

N image features, P parts in the model45

Page 45: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models• Visual vocabulary is used to index votes for

object position [a visual word = “part”]

B. Leibe, A. Leonardis, and B. Schiele, Combined Object Categorization and Segmentation with an Implicit Shape Model, ECCV Workshop on Statistical Learning in Computer Vision 2004

visual codeword withdisplacement vectors

training image annotated with object localization info

46

Page 46: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models• Visual vocabulary is used to index votes for

object position [a visual word = “part”]

B. Leibe, A. Leonardis, and B. Schiele, Combined Object Categorization and Segmentation with an Implicit Shape Model, ECCV Workshop on Statistical Learning in Computer Vision 2004

test image

47

Page 47: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models: Training1. Build vocabulary of patches around

extracted interest points using clustering

48

Page 48: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models: Training1. Build vocabulary of patches around

extracted interest points using clustering2. Map the patch around each interest point to

closest word

49

Page 49: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models: Training1. Build vocabulary of patches around

extracted interest points using clustering2. Map the patch around each interest point to

closest word3. For each word, store all positions it was

found, relative to object center

50

Page 50: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models: Testing1. Given new test image, extract patches, match to

vocabulary words 2. Cast votes for possible positions of object center3. Search for maxima in voting space4. (Extract weighted segmentation mask based on

stored masks for the codebook occurrences)

What is the dimension of the Hough space?

51

Page 51: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Implicit shape models: Testing

52

Page 52: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

Original image

Example: Results on Cows

53

Page 53: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

Original imageInterest points

Example: Results on Cows

54

Page 54: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

Original imageInterest pointsMatched patches

Example: Results on Cows

55

Page 55: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

56

Original imageInterest pointsMatched patchesVotes

Example: Results on Cows

Page 56: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

571st hypothesis

Example: Results on Cows

Page 57: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

582nd hypothesis

Example: Results on Cows

Page 58: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

59

Example: Results on Cows

3rd hypothesis

Page 59: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Perc

eptu

al a

nd S

enso

ry A

ugm

ente

d Co

mpu

ting

Visu

al O

bjec

t Rec

ogni

tion

Tuto

rial

60

Detection Results

• Qualitative Performance Recognizes different kinds of objects Robust to clutter, occlusion, noise, low contrast

Page 60: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Shape representation in part-based models

x1

x3

x4

x6

x5

x2

“Star” shape model

e.g. implicit shape model Parts mutually independent

N image features, P parts in the model

x1

x3

x4

x6

x5

x2

Fully connected constellation model

e.g. Constellation Model Parts fully connected

Slide credit: Rob Fergus

61

Page 61: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Probabilistic constellation model

h: assignment of features to parts

)|(),|(),|(max)|,()|(

objecthpobjecthshapepobjecthappearancePobjectshapeappearancePobjectimageP

h==

Partdescriptors

Partlocations

Candidate partsSource: Lana Lazebnik

62

Page 62: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Probabilistic constellation model

h: assignment of features to parts

Part 2

Part 3

Part 1

)|(),|(),|(max)|,()|(

objecthpobjecthshapepobjecthappearancePobjectshapeappearancePobjectimageP

h==

Source: Lana Lazebnik

63

Page 63: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Probabilistic constellation model

h: assignment of features to parts

Part 2

Part 3

Part 1

)|(),|(),|(max)|,()|(

objecthpobjecthshapepobjecthappearancePobjectshapeappearancePobjectimageP

h==

Source: Lana Lazebnik

64

Page 64: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Example results from constellation model: data from four categories

Slide from Li Fei-Fei http://www.vision.caltech.edu/feifeili/Resume.htm65

Page 65: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Face model

Recognition results

Appearance: 10 patches closest to mean for each part

Fergus et al. CVPR 2003

66

Page 66: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Face model

Recognition results

Appearance: 10 patches closest to mean for each part

Test images: size of circles indicates score of hypothesis

Fergus et al. CVPR 2003Kristen Grauman

67

Page 67: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Appearance: 10 patches closest to mean for each part

Motorbike model

Recognition results

Fergus et al. CVPR 2003Kristen Grauman

68

Page 68: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Appearance: 10 patches closest to mean for each part

Spotted cat model

Recognition results

Fergus et al. CVPR 2003Kristen Grauman

69

Page 69: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Shape representation in part-based models

x1

x3

x4

x6

x5

x2

“Star” shape model

e.g. implicit shape model Parts mutually independent Recognition complexity: O(NP) Method: Gen. Hough Transform

N image features, P parts in the model

x1

x3

x4

x6

x5

x2

Fully connected constellation model

e.g. Constellation Model Parts fully connected Recognition complexity: O(NP) Method: Exhaustive search

Slide credit: Rob Fergus

70

Page 70: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Summary: part-based and local feature models for

generic object recognition

• Histograms of visual words to capture global or local layout in the bag-of-words framework– Pyramid match kernels– Powerful in practice for image recognition

• Part-based models encode category’s part appearance together with 2d layout and allow detection within cluttered image– “implicit shape model”: shape based on layout of all parts

relative to a reference part; Generalized Hough for detection– “constellation model”: explicitly model mutual spatial layout

between all pairs of parts; exhaustive search for best fit of features to parts 71

Page 71: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Recognition models

Instances: recognition by

alignment

Categories: Holistic appearance models (and sliding window detection)

Categories: Local feature and

part-based models

Kristen Grauman72

Page 72: Part-based and local feature models for generic object ...web.cs.ucdavis.edu/.../teaching/ecs189g-spring2015/... · Part-based and local feature models for generic object recognition

Questions?

See you Tuesday!

73