Paper commentary
OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields
OpenPose detects 2D poses of many people in realtime using part affinity fields
- Problem Top-down pose methods slow down as more people appear, and they lose anyone the person detector misses. Bottom-up grouping took minutes per image, too slow for realtime.
- Method OpenPose finds body parts first, then groups them using part affinity fields, which are 2D vector fields that encode each limb's position and direction.
- Results On COCO validation, the PAF-first model scores 65.3 AP, compared to 61.0 AP for confidence maps first.
Why top-down pose estimation gets stuck
Multi-person pose estimation has to handle an unknown number of people at any position or scale, with parts that overlap and touch each other. Top-down methods solve this by running a person detector first and a single-person pose estimator on each detected box. This design is simple, but the detector becomes a single point of failure, and a missed person can't be recovered later.
Its cost also grows with the number of people, because one pose run happens for every detection.
Bottom-up methods avoid that dependence because they find parts first and group them afterwards, so runtime can be decoupled from crowd size. Early bottom-up systems lost that advantage, though, because their final parse needed costly global inference and took several minutes per image. Pishchulin et al.'s integer linear program over a fully connected graph averaged on the order of hours per image.
Insafutdinov et al. sped this up with an incremental optimization, but their method still took several minutes per image. The open question is whether bottom-up grouping can run in realtime without giving up accuracy.
Part affinity fields as the association signal
The key idea is to encode each limb as a 2D vector field over the image, instead of as a single midpoint. Each pixel inside a limb carries a unit vector that points from one joint of the limb to the other, and pixels outside the limb carry zero. Because there is one PAF per limb type, the network learns orientation as well as location for each connection.
A midpoint scheme fails in crowds because it keeps only one position per limb and drops its orientation. Keeping the whole limb region and its direction lets the scorer reject candidate pairs that point the wrong way. The authors speculate that pairwise scores carry global context because of the large receptive field of the PAF network.
Where the limbs of several people overlap, the target field at a pixel is the mean of the non-zero vectors there.
Two-branch iterative network
The image passes through the first 10 layers of VGG-19, which are fine-tuned, to produce a shared feature map F. The first stages predict PAFs from F, and each later PAF stage receives F together with the previous stage's PAF output. Only after the last PAF stage do the confidence map stages start, and they build on the most refined PAFs.
The earlier version refined both branches at every stage, and the authors dropped the confidence map refinement while keeping the PAF refinement. They say this halves the computation per stage. Separately, each 7x7 layer was replaced by three stacked 3x3 layers, which keeps the receptive field. The authors count 97 operations for the 7x7 form and 51 for the 3x3 stack, and they concatenate the outputs of the three layers.
Together these changes make the network deeper while the cost of each stage falls. The authors report the refined network as about 200% faster and about 7% more accurate than the original approach.
Training targets and the loss at each stage
Confidence map targets place a Gaussian peak at each annotated part of each person. Where people overlap, the target is the pixelwise maximum over people rather than the average, so nearby peaks stay distinct. At test time, non-maximum suppression turns the peaks into part candidates.
Every stage gets its own L2 loss against the ground-truth PAFs or confidence maps, so each stage is supervised. A binary mask is zero where a person is unlabeled, so the network isn't penalized for predicting that person's parts. The authors argue that this per-stage supervision replenishes gradients periodically and so counters vanishing gradients.
From candidate parts to people
Candidate parts from the confidence maps form a set of possible limbs, and each candidate limb is scored by a line integral of the PAF along the segment joining its two ends. The integral is approximated by summing uniformly spaced samples along that segment.
Finding the best full-body assignment is a K-dimensional matching problem, which is NP-hard. So the authors keep only a spanning tree of limb types and solve each adjacent pair as its own bipartite matching. Each pair's matching is a maximum weight assignment in which no two selected edges share a candidate, and the Hungarian algorithm solves it.
They argue the greedy result is good because PAFs model adjacent tree nodes explicitly, while the CNN captures the rest implicitly.
Redundant connections, such as ear to shoulder, add extra evidence in crowded scenes. Parsing sorts all pairwise connections by PAF score and drops any link that would join two people who are already assigned apart.
Checking accuracy on MPII and COCO
On the full MPII test set the method reaches 75.6 mAP with three-scale search and 72.5 mAP with one scale. Without scale search, the authors report a 13% absolute gain over previous methods. On the 288 image subset, the method is 8.5% mAP above the earlier bottom-up DeeperCut result.
On the custom MPII validation set, the Fig. 6d (sep) structure reaches 79.1 mAP, compared to 78.3 for the fully connected graph of Fig. 6b and 77.6 for the Fig. 6c tree. The authors connect the tree's advantage to training convergence, since the tree needs 13 part association channels instead of 91 for the full graph. Both tree variants give similar results, so the authors judge minimal edges sufficient.
Training with masks of unlabeled persons adds another 2.3%. Parsing on PAFs reaches 79.4% mAP, compared to 81.6% with ground-truth connections.
On COCO validation, the 5 PAF and 1 CM configuration scores 65.3 AP, compared to 61.0 AP for 3 CM and 3 PAF. Predicting confidence maps first costs about 4% absolute in confidence map accuracy, which the authors read as evidence that PAFs make a good prior. A 4-stage model with 3 PAF and 1 CM still scores 64.6 AP, above the 61.0 of the 6-stage confidence-map-first model.
On COCO test-dev the method reaches 64.2 AP, compared to 61.8 AP for the earlier bottom-up version. The top-down Megvii entry sits at 78.1 AP on the same leaderboard, so this bottom-up model is not the top entry.
Runtime that does not track crowd size
Parsing takes 0.58 ms for 9 people, while CNN processing takes 36 ms on the GPU setup. The authors treat CNN cost as constant with the number of people, O(1), and parsing as O(n^2) in the number of people. Parsing is therefore small in practice, even though its worst case grows faster.
OpenPose runs at about 22 FPS on an Nvidia GTX 1080 Ti. The body and foot checkpoint runs in 36 ms with CUDA, compared to 74 ms for the original COCO model. On CPU it needs 10396 ms, compared to 2407 ms for the original COCO model. The authors attribute the slower CPU runs to the memory needs of the new layers, which are many but carry fewer operations.
Adding foot keypoints to the body model
Public keypoint sets label only the ankle on the foot, while avatar and body shape work needs big toe and heel positions. The authors labeled six foot keypoints on a subset of COCO, with 14K training annotations and 545 validation annotations. They label the center of each toe rather than its surface, so the target is a 3D position.
Rather than cropping feet with a body detector, the same architecture predicts body and foot keypoints together. Training draws batches from the body dataset with 95% probability and from the body plus foot dataset with 5%. Foot outputs are masked during body-only batches, and body outputs are masked during foot batches.
On COCO validation the body and foot model scores 65.3 AP, compared to 65.2 AP for the body-only model with the same architecture. So adding foot outputs left body accuracy essentially unchanged in this comparison. The body and foot model also reaches 77.9 AP and 82.5 AR on the foot validation set.
The authors say 14K training annotations are probably too few for a robust foot detector, with more jitter and misses than for body keypoints.
Vehicle keypoints as a generality check
The authors ran the same architecture on vehicle keypoints, with no changes to the architecture or training parameters. The vehicle keypoint detector reaches 70.1 AP and 77.4 AR on that validation set. The authors note that both AP and AR are higher than on the body task, mainly because the dataset is smaller and simpler.
Failure cases and open issues
The authors link this to overlapping PAFs, which make the greedy multi-person parse fail. Body occlusion causes false negatives and high localization error, partly because occluded keypoints are not annotated.
Non-typical and upside-down poses are weak, and stronger rotation augmentation cut global COCO accuracy by about 5%. The foot detector is limited by its 14K training annotations. The evaluation covers 2D keypoints on three benchmarks, MPII, COCO and the foot dataset, with no 3D evaluation.
Paper info
- Authors
- Zhe Cao, Gines Hidalgo, Tomas Simon, Shih-En Wei, Yaser Sheikh
- Venue
- arXiv · Preprint
- First published
- 2018-12-18
- Added
- 2026-11-11
- Updated
- 2019-5-30
- Version
- v2
- arXiv
- 1812.08008
- Category
- cs.CV
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Zhe Cao, Gines Hidalgo, Tomas Simon, Shih-En Wei, Yaser Sheikh (2018). OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields. arXiv:1812.08008v2. https://arxiv.org/abs/1812.08008v2
BibTeX
@misc{cao2018openpose,
title = {{OpenPose: Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields}},
author = {Zhe Cao and Gines Hidalgo and Tomas Simon and Shih-En Wei and Yaser Sheikh},
year = {2018},
eprint = {1812.08008},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1812.08008v2}
}