Modeladvanced
Deformable part model
Also called DPM, Felzenszwalb deformable parts.
Score an object as a root HOG filter plus part filters at displaced positions minus a quadratic deformation cost, maximized fast with generalized distance transforms.
The deformable part model (DPM) is an object model for sliding-window detection. It scores a window as a coarse root filter that covers the whole object, plus several part filters at twice the resolution, each allowed to move away from its rest position at a quadratic cost. It is a star-shaped pictorial structure on HOG features, so the best placement of the parts at every root position is found with generalized distance transforms in time linear in the number of positions. Felzenszwalb, Girshick, McAllester and Ramanan trained it discriminatively as a latent SVM, in which the part positions are hidden variables, and it was among the best detectors on PASCAL VOC from 2008 until convolutional networks such as R-CNN replaced it in 2014.
The machine
The feature pyramid. A HOG feature map with cells of 8 by 8 pixels is computed at each level of an image pyramid. Each cell has a 31-dimensional vector: 18 contrast-sensitive orientation bins, 9 contrast-insensitive orientation bins and 4 gradient energy terms. The last 13 numbers are an analytic projection of the 36 numbers that the four block normalizations of Dalal and Triggs give for one cell. The pyramid has levels per octave, and a part filter is placed levels below its root, where the cells are half as big, so the parts see twice the detail.
The model. A model with parts is . is the root filter, a array of 31-vectors. Each part is : a filter , an anchor position relative to the root, and four deformation coefficients . The bias makes the scores of different models comparable.
The score. A placement is , with a cell and a level, and for the parts. Its score is (Eq. (2) of the paper)
where is the subwindow of features at the size of the filter, is the displacement of part from its anchor (Eq. (3)), and (Eq. (4)). With having positive quadratic terms, the deformation cost is a separable quadratic spring.
Detection. The score of a root placement is the best score over the part placements:
where is the response of filter on level (a correlation) and
is a generalized distance transform of that response (Eq. (8) and (9)). The root placements with a score above a threshold are detections; the argmax of each gives the part positions. Then:
- Bounding-box prediction. A linear function of the root and part positions, fit by least squares, predicts a better box (Section 7.1).
- Non-maximum suppression. Detections are sorted by score, and a detection is dropped when more than 50 percent of its box is covered by a box already kept (Section 7.2). This is the coverage test, not the intersection over union of later box non-maximum suppression.
- Context. A second classifier rescores each detection with the best scores of all the class models in the image (Section 7.3).
Mixtures. A mixture model has components, each a full star model, for example for the front and the side view of a car. The score of a root placement is the best over the components (Section 3.3).
What it counts
The model counts the work of scoring a whole feature pyramid. Let be the number of cells of the pyramid and the number of parts. The filter responses are correlations; each distance transform is by the lower envelope method, so matching all parts at all root placements costs beyond the correlations. Compared with a single rigid filter of the same size, the parts add a small constant factor to the cost.
For training, it counts the solution of the latent SVM problem. With a vector of all filter weights, deformation coefficients and the bias, and a feature vector for an example and a latent value (the component and the part placements),
and the training objective over labelled examples , , is (Eq. (14))
Relation to other models
- Pictorial structures. The DPM is a pictorial structure with a star graph, the root as the centre, and quadratic springs; the dynamic program of that model becomes one distance transform per part.
- The Dalal-Triggs detector. With no parts, the model is a single HOG filter scored by a linear SVM, which is the Dalal-Triggs detector with a different feature map. The paper reports that the root filter alone gives an average precision of 0.24 on the person class of PASCAL VOC 2006, and the full model 0.39 (Section 8).
- Support vector machines. With a single latent value for each example, is linear, and the objective is that of a linear support vector machine. Multiple-instance SVMs are another special case, where the latent value picks one instance from a bag.
- The implicit shape model. The implicit shape model is also a star of local appearance around a centre, but it is generative, uses many small codebook patches instead of a few learned part filters, and finds objects by voting instead of by scanning.
- Convolutional networks. Girshick and others later showed that the DPM can be written as a convolutional network with distance transform pooling. Region-based detectors such as R-CNN replaced it from 2014.
Known results in the model
Semi-convexity (Section 4.1). is a maximum of linear functions of , so it is convex. The hinge loss is then convex for a negative example (), but not for a positive one. If the latent value of each positive example is fixed to one , the objective becomes convex. This gives a coordinate descent (Section 4.2): fix the best latent value of each positive under the current , then solve the convex problem in , which is a standard SVM over the fixed positives and all latent values of the negatives; repeat. Neither step increases , so the objective goes down monotonically, but only to a local optimum, and the method needs a good start.
Data mining of hard negatives (Section 4.4). A negative image gives a very large number of windows. Let be the minimizer of the objective on a cache of examples, and the hard examples of under : those with . Theorem 1 states that if , then , so the cache can be grown with hard examples and shrunk of easy ones while the solution on the cache stays correct for all of . Theorem 2 gives conditions under which this loop terminates.
Training procedure (Section 5). Train the root filters of the components first, with the data split by the aspect ratio of the boxes; combine them into a mixture; then place 6 parts per component greedily on high-energy regions of the root filter at twice the resolution, and train the whole model with the coordinate descent and data mining above. The quadratic deformation coefficients are kept at least 0.01, so every spring stays a proper quadratic cost.
Matching cost. The cost for parts and positions follows from the linear-time Felzenszwalb distance transform: without it, the best part placement for every root position by brute force would cost for a search region of cells per part.
Results (Section 8). On PASCAL VOC 2008 the system had the best average precision of the entries in 9 of the 20 classes and the second best in 8, and on the INRIA person data it reached an average precision of 0.869.
References
- Pedro F. Felzenszwalb, Ross B. Girshick, David McAllester and Deva Ramanan, Object detection with discriminatively trained part-based models, IEEE Transactions on Pattern Analysis and Machine Intelligence 32(9), 2010, 1627-1645, Section 3 (Eq. (2) to (4) the score and deformation features, Eq. (8) and (9) matching with distance transforms, Section 3.3 mixtures), Section 4 (latent SVM, semi-convexity, coordinate descent, stochastic gradient descent, data mining with Theorems 1 and 2), Section 5 (training), Section 6 (features), Section 7 (bounding-box prediction, non-maximum suppression, context), Section 8 (results)
- Pedro F. Felzenszwalb, David McAllester and Deva Ramanan, A discriminatively trained, multiscale, deformable part model, CVPR 2008, The first version: a root filter, part filters at twice its resolution, and latent SVM training
- Pedro F. Felzenszwalb and Daniel P. Huttenlocher, Pictorial structures for object recognition, International Journal of Computer Vision 61(1), 2005, 55-79, Section 4.1 (matching a tree model with generalized distance transforms)
- Navneet Dalal and Bill Triggs, Histograms of oriented gradients for human detection, CVPR 2005, The HOG features and the rigid linear template that the root filter extends
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag 5X16YR Edit this page History Report an error Markdown