Pose estimation: locate joints, connect people, check the coordinates
姿态估计
Build and differentiate a heatmap CNN, decode coordinates, associate joints with PAFs, and distinguish OKS, MPJPE and the ambiguity of 3D pose.
pose-estimationA wrist is a location—and someone’s wrist
Two people cross their arms in a photograph. Finding four wrists is only half the job: the system must connect each wrist to the correct elbow and person. A wrong connection can produce a plausible-looking skeleton that belongs to nobody.
Human pose estimation locates named body joints and, for multiple people, assigns them to individuals. A 2D pose uses image coordinates; a 3D pose uses spatial coordinates in a stated reference frame. This article covers articulated human skeletons. Estimating a rigid object’s rotation and translation is a different use of “pose.” A skeleton also does not determine identity, intention or an action label.
For one person and K joint types, begin with a list of XY coordinates plus annotation flags. COCO uses 0 for unlabelled, 1 for labelled but not visible, and 2 for labelled and visible. An occluded elbow may still have an annotated position. A zero coordinate is not, by itself, a missing-data marker. Annotation contract
There are two common ways to organize the multiple-person problem. A top-down pipeline detects people, crops each person and estimates that person’s joints. A bottom-up pipeline finds parts over the image and then groups them. A missed person box can defeat the first approach before joint estimation begins; ambiguous association can defeat the second even when the joint locations are good. These are pipeline descriptions, not accuracy rankings. Problem decomposition
We will build a small heatmap CNN, then examine association and 3D geometry in separate controlled examples. Keeping the examples separate lets us identify which calculation actually produced each result.
Separate location, identity and measurement
Coordinates need a frame
A crop changes the meaning of a coordinate. Write a 2D affine map from the original image to the crop as:
Apply the inverse transform to return decoded predictions to the original image. Distinguish image width/height from heatmap width/height, XY from array row/column, and pixel-center conventions from endpoint conventions. An apparently consistent one-pixel shift can be a geometry bug rather than a weak model.
DeepPose regressed joint coordinates normalized relative to a bounding box and refined them through a cascade. It made shared image evidence available to coordinate prediction rather than estimating every joint in isolation. Normalized regression
Our horizontal flip uses x′=W−1−x on a zero-indexed grid, followed by a permutation exchanging left/right joint names. Mirroring the coordinates without exchanging the labels teaches the network that a right wrist is a left wrist.
Heatmaps turn a point into a spatial learning target
For a labelled joint j at coordinate qj, the example uses an unnormalized Gaussian target on heatmap-grid points p. Let mj be 1 when that joint is labelled and 0 otherwise. With K maps of H×W pixels:
Sigma is a positive standard deviation in heatmap pixels. A wider target distributes the learning signal across more nearby pixels. It does not change the annotation’s true location. If no joint is labelled, our loss and gradient are both zero; the displayed fraction is used only when its denominator is positive.
For any predicted map entry, differentiating the squared error gives:
This is the exact reduction used by our code, not a promise that every pose library uses the same normalization. The fixed MMPose MSRA codec rounds target centers and uses a cropped Gaussian window with radius 3σ. Our continuous-center targets are untruncated. Its default decode also refines coordinates after finding maxima; our raw argmax does not. Target construction, codec
A raw argmax selects one grid cell, so a target centered at (4.25,4.75) decodes to (4,5). The resulting error is about 0.354 heatmap pixels even before any model error. Ties use the first flattened row-major position here. Unlike the fixed MMPose maximum helper, the example does not replace nonpositive maxima with invalid coordinates. A production decoder needs an explicit confidence/absence policy. Maximum decoding
A differentiable coordinate need not be a likely coordinate
Integral regression normalizes a spatial score map and takes its coordinate expectation. In our zero-indexed grid and positive temperature τ:
Subtract the largest scaled logit before exponentiating. The temperature controls concentration for a fixed map; it is not a calibrated uncertainty estimate. The coordinate derivative follows directly from the softmax derivative:
This allows a coordinate loss to train the heatmap-producing network. But put equal probability at (1,2) and (5,2): the expected position is (3,2), where this two-point distribution has no probability at all. Differentiability removes a hard decoding barrier; it does not resolve which of two plausible wrists is correct. Integral formulation
Preserve detail while collecting context
A wrist needs local image detail; deciding whether it connects to a nearby elbow needs a larger view. Stacked Hourglass repeatedly compresses and expands spatial features, combines scales through additive skips, and adds intermediate supervision. The v1 architecture discussed here stacks two hourglass modules; its “bottom-up/top-down” feature processing is not the same term as bottom-up multiple-person grouping. Hourglass v1
HRNet maintains a relatively high-resolution stream alongside progressively introduced lower-resolution streams, repeatedly exchanging information between them. Lower-resolution features are projected and upsampled; higher-resolution features are downsampled for fusion. Its stem still reduces image resolution. “High resolution” describes the feature hierarchy, not a claim that every layer uses original pixels. HRNet method
Associate parts using evidence along the limb
A Part Affinity Field, or PAF, stores a 2D direction for a limb type at each pixel. A labelled limb contributes its unit direction inside a finite rectangular strip; overlapping contributions of the same type are averaged. Opposite directions can cancel. For candidate endpoints a and b, the association score is:
The score samples directional evidence along the candidate connection. It is normalized over u, not multiplied by the limb length. The original method solves maximum-weight bipartite matching for each limb type and assembles the body through a simplified skeleton structure. Its overall greedy parsing description does not mean “always take the largest remaining edge.” PAF construction and matching
The original two-person example below uses an oracle field, bilinear samples and exact tiny subset dynamic programming. For a score matrix with rows [0.9,0.8] and [0.8,0], taking 0.9 first loses to the two cross assignments totaling 1.6. Our solver allows unmatched candidates, so weak or negative edges need not become limbs.
Evaluate the right quantity
Pixel error alone treats a two-pixel error on a distant face like the same error on a large torso. COCO’s Object Keypoint Similarity uses object scale and joint-specific constants. With squared object scale A equal to segment area, distances dj, annotation visibility vj and κj=2σj:
The visibility belongs to ground truth; predicted per-joint visibility does not replace it. The fixed evaluator includes labelled occluded joints, limits keypoint detections to 20 per image, and has special handling for unlabelled/ignored people. Our one-person function returns None when no joint is labelled. It does not implement that full matching and ignore logic. Official definition, fixed evaluator, joint constants
One person’s OKS is not AP. COCO keypoint AP additionally uses scored detections, assignment and precision–recall across OKS thresholds .50 through .95 in increments of .05. PCK, a different family of metrics, instead counts normalized distances below a specified threshold; specify both normalization and threshold before comparing results. COCO metrics, PCK implementation
For 3D predictions, mean per-joint position error, MPJPE, is the average Euclidean distance in a shared unit and frame. State whether positions are absolute, root-relative or aligned by another transformation. Subtracting each pose’s root removes translation; it does not perform scale/rotation alignment. A low Procrustes-aligned error answers a different question from accurate camera-frame coordinates. MPJPE alignment choices
Run the complete small computation
Use Python 3.12 and NumPy 1.26.4. Save the following as pose_geometry.py and run python pose_geometry.py. The program includes a complete 3×3 convolution → ReLU → 1×1 heatmap network, all 127 parameter gradients, input gradients and one update. It uses synthetic inputs derived from known targets, plus coordinate channels. This is a controlled calculation, not a held-out pose benchmark.
The PAF fixture is generated from known limb endpoints. It is separate from the CNN; the CNN does not learn that field. The 3D routines perform geometry and metrics, not learned lifting. No pretrained weights or full HRNet/OpenPose model are hidden behind a library call.
"""Original pose teaching operators: heatmaps, gradients, PAFs and metrics.
Single-person heatmap CNN plus separate oracle-field association fixtures.
Not HRNet/OpenPose training, a COCO evaluator, or a learned 3D lifting model.
"""
import json
from functools import lru_cache
import numpy as np
def finite(value, rank):
x = np.asarray(value, float)
if x.ndim != rank or not np.isfinite(x).all():
raise ValueError('finite array of the specified rank required')
return x
def size2(shape):
if len(shape) != 2 or any(type(n) is not int or n < 1 for n in shape):
raise ValueError('positive integer height and width required')
return tuple(shape)
def visibility(value, count):
v = np.asarray(value)
if v.shape != (count,) or v.dtype.kind not in 'iu' or not np.isin(v, [0, 1, 2]).all():
raise ValueError('one integer visibility flag 0,1,2 per joint required')
return v > 0
def gaussian_targets(points, flags, shape, sigma=1.):
"""Continuous centers, untruncated Gaussian values; not rounded MSRA targets."""
points = finite(points, 2)
if points.shape[1] != 2 or len(points) == 0 or not np.isfinite(sigma) or sigma <= 0:
raise ValueError('nonempty XY points and positive sigma required')
h, w = size2(shape)
valid = visibility(flags, len(points))
yy, xx = np.indices((h, w))
target = np.exp(-((xx[None]-points[:, 0, None, None])**2
+(yy[None]-points[:, 1, None, None])**2)/(2*sigma*sigma))
target[~valid] = 0
return target, valid
def heatmap_loss(predicted, target, flags):
p, y = finite(predicted, 3), finite(target, 3)
if p.shape != y.shape or min(p.shape) < 1:
raise ValueError('matching nonempty K,H,W maps required')
valid = visibility(flags, len(p))
difference = (p-y)*valid[:, None, None]
divisor = int(valid.sum())*p.shape[1]*p.shape[2]
if divisor == 0:
return 0., np.zeros_like(p)
return float(np.sum(difference**2)/divisor), 2*difference/divisor
def argmax_xy(heatmaps):
"""Raw row-major argmax; no confidence gate or quarter-pixel refinement."""
h = finite(heatmaps, 3)
if min(h.shape) < 1:
raise ValueError('nonempty K,H,W heatmaps required')
flat = h.reshape(len(h), -1)
index = flat.argmax(axis=1)
return np.stack([index % h.shape[2], index//h.shape[2]], axis=-1), flat.max(axis=1)
def integral_xy(logits, temperature=1.):
z = finite(logits, 3)
if min(z.shape) < 1 or not np.isfinite(temperature) or temperature <= 0:
raise ValueError('nonempty logits and positive temperature required')
scaled = z/temperature
scaled -= scaled.max(axis=(1, 2), keepdims=True)
probability = np.exp(scaled)
probability /= probability.sum(axis=(1, 2), keepdims=True)
y, x = np.indices(z.shape[1:])
xy = np.stack([(probability*x).sum(axis=(1, 2)), (probability*y).sum(axis=(1, 2))], axis=-1)
return xy, probability
def integral_backward(gradient, probability, temperature=1.):
p, g = finite(probability, 3), finite(gradient, 2)
if min(p.shape) < 1 or g.shape != (len(p), 2) or np.any(p < 0) or not np.allclose(p.sum(axis=(1, 2)), 1):
raise ValueError('normalized probabilities and K,2 coordinate gradients required')
if not np.isfinite(temperature) or temperature <= 0:
raise ValueError('positive temperature required')
y, x = np.indices(p.shape[1:])
mean_x = (p*x).sum(axis=(1, 2))
mean_y = (p*y).sum(axis=(1, 2))
return p*(g[:, 0, None, None]*(x-mean_x[:, None, None])
+g[:, 1, None, None]*(y-mean_y[:, None, None]))/temperature
def affine_points(points, matrix):
p, a = finite(points, 2), finite(matrix, 2)
if p.shape[1] != 2 or a.shape != (2, 3):
raise ValueError('XY points and a2x3 affine transform required')
return np.c_[p, np.ones(len(p))] @ a.T
def flip_pose(points, width, permutation):
p = finite(points, 2)
order = np.asarray(permutation)
if p.shape[1] != 2 or type(width) is not int or width < 1 or order.shape != (len(p),) or order.dtype.kind not in 'iu' or sorted(order.tolist()) != list(range(len(p))):
raise ValueError('XY points, positive width and full joint permutation required')
p = p.copy()
p[:, 0] = width-1-p[:, 0]
return p[order]
def paf_target(starts, ends, shape, radius=.75):
a, b = finite(starts, 2), finite(ends, 2)
if a.shape != b.shape or a.shape[1] != 2 or not np.isfinite(radius) or radius <= 0:
raise ValueError('matching limb endpoint arrays and positive strip radius required')
h, w = size2(shape)
field, count = np.zeros((h, w, 2)), np.zeros((h, w))
yy, xx = np.indices((h, w))
for start, end in zip(a, b):
length = np.linalg.norm(end-start)
if length == 0:
raise ValueError('zero-length limbs have no direction')
unit = (end-start)/length
dx, dy = xx-start[0], yy-start[1]
along = dx*unit[0]+dy*unit[1]
across = np.abs(-dx*unit[1]+dy*unit[0])
inside = (along >= 0) & (along <= length) & (across <= radius)
field[inside] += unit
count[inside] += 1
return field/np.maximum(count, 1)[..., None]
def paf_score(field, start, end, samples=32):
f, a, b = finite(field, 3), finite(start, 1), finite(end, 1)
if min(f.shape) < 1 or f.shape[2] != 2 or a.shape != (2,) or b.shape != (2,) or type(samples) is not int or samples < 1:
raise ValueError('HxWx2 field, endpoints and positive sample count required')
h, w = f.shape[:2]
for point in [a, b]:
if np.any(point < 0) or point[0] > w-1 or point[1] > h-1:
raise ValueError('endpoints must be inside the pixel-center grid')
length = np.linalg.norm(b-a)
if length == 0:
raise ValueError('zero-length candidate')
direction = (b-a)/length
score = 0.
for t in (np.arange(samples)+.5)/samples:
x, y = a+t*(b-a)
x0, y0 = int(x), int(y)
x1, y1 = min(x0+1, w-1), min(y0+1, h-1)
dx, dy = x-x0, y-y0
value = ((1-dy)*((1-dx)*f[y0, x0]+dx*f[y0, x1])
+dy*((1-dx)*f[y1, x0]+dx*f[y1, x1]))
score += value @ direction/samples
return float(score)
def best_pairs(scores, threshold=0.):
"""Exact tiny maximum-weight partial matching via subset DP, not Hungarian.
At most12 columns. Unmatched rows are allowed; only scores above threshold
are eligible. Equal total scores retain the earlier decision (skip first).
"""
scores = finite(scores, 2)
n, cols = scores.shape
if cols > 12 or n > 50 or not np.isfinite(threshold):
raise ValueError('tiny finite problem required: at most50 rows/12 columns')
@lru_cache(None)
def solve(row, used):
if row == n:
return 0., ()
best, pairs = solve(row+1, used)
for col in range(cols):
if not used & (1 << col) and scores[row, col] > threshold:
rest, tail = solve(row+1, used | (1 << col))
candidate = scores[row, col]+rest
if candidate > best:
best, pairs = float(candidate), ((row, col),)+tail
return best, pairs
return solve(0, 0)
def oks(predicted, truth, flags, area, sigmas):
"""One annotated person. sigmas are COCO-style sigma, with kappa=2*sigma.
Not the full evaluator: all-unlabeled GT returnsNone instead of running the
expanded-bbox ignore matching branch. Object area is supplied, not inferred.
"""
p, g = finite(predicted, 2), finite(truth, 2)
sigma = finite(sigmas, 1)
if p.shape != g.shape or p.shape[1] != 2 or sigma.shape != (len(p),) or np.any(sigma <= 0) or not np.isfinite(area) or area <= 0:
raise ValueError('matching XY poses, positive area and one positive sigma per joint required')
valid = visibility(flags, len(p))
if not valid.any():
return None
error2 = ((p-g)**2).sum(axis=1)
return float(np.exp(-error2[valid]/(2*area*(2*sigma[valid])**2)).mean())
def project(points, focal=(100., 100.), center=(0., 0.)):
p = finite(points, 2)
f, c = finite(focal, 1), finite(center, 1)
if p.shape[1] != 3 or np.any(p[:, 2] <= 0) or f.shape != (2,) or c.shape != (2,) or np.any(f <= 0):
raise ValueError('XYZ points in front of camera, positive focal lengths and XY center required')
return p[:, :2]/p[:, 2, None]*f+c
def mpjpe(predicted, truth, flags, root=None):
p, g = finite(predicted, 2), finite(truth, 2)
if p.shape != g.shape or p.shape[1] != 3:
raise ValueError('matching K,3 joint coordinates in one common unit required')
valid = visibility(flags, len(p))
if not valid.any():
return None
if root is not None:
if type(root) is not int or not 0 <= root < len(p) or not valid[root]:
raise ValueError('a labeled root joint index required')
p, g = p-p[root], g-g[root]
return float(np.linalg.norm(p[valid]-g[valid], axis=1).mean())
def conv(x, kernel, bias):
h, w = x.shape[:2]
k = kernel.shape[0]
pad = k//2
xp = np.pad(x, ((pad, pad), (pad, pad), (0, 0)))
out = np.broadcast_to(bias, (h, w, len(bias))).copy()
for y in range(k):
for z in range(k):
out += xp[y:y+h, z:z+w] @ kernel[y, z]
return out
def conv_backward(x, kernel, gradient):
h, w = x.shape[:2]
k, pad = kernel.shape[0], kernel.shape[0]//2
xp = np.pad(x, ((pad, pad), (pad, pad), (0, 0)))
dxp, dk = np.zeros_like(xp), np.zeros_like(kernel)
for y in range(k):
for z in range(k):
dk[y, z] = np.einsum('hwc,hwf->cf', xp[y:y+h, z:z+w], gradient)
dxp[y:y+h, z:z+w] += gradient @ kernel[y, z].T
return dxp[pad:pad+h, pad:pad+w], [dk, gradient.sum(axis=(0, 1))]
def parameters(seed=4):
rng = np.random.default_rng(seed)
return [rng.normal(0, .15, (3, 3, 3, 4)), np.full(4, .1),
rng.normal(0, .15, (1, 1, 4, 3)), np.zeros(3)]
def forward(image, p):
x = finite(image, 3)
if min(x.shape) < 1 or x.shape[2] != 3:
raise ValueError('nonempty H,W,3 input required')
z = conv(x, p[0], p[1])
a = np.maximum(z, 0)
out = conv(a, p[2], p[3]).transpose(2, 0, 1)
return out, (x, z, a)
def backward(p, cache, gradient):
x, z, a = cache
grad = finite(gradient, 3)
if grad.shape != (3, *x.shape[:2]):
raise ValueError('3,H,W heatmap gradient required')
da, head = conv_backward(a, p[2], grad.transpose(1, 2, 0))
dx, body = conv_backward(x, p[0], da*(z > 0))
return body+head, dx
def demo():
shape = (16, 16)
joints = np.array([[4.25, 4.75], [10.5, 6.25], [7.5, 12.]])
flags = np.array([2, 1, 2])
target, _ = gaussian_targets(joints, flags, shape, sigma=1.)
y, x = np.indices(shape)
gray = (target*np.array([.8, .5, 1.])[:, None, None]).sum(axis=0)
image = np.stack([gray, x/15, y/15], axis=-1)
p = parameters()
initial, cache = forward(image, p)
before, grad = heatmap_loss(initial, target, flags)
dp, dx = backward(p, cache, grad)
for parameter, derivative in zip(p, dp):
parameter -= .1*derivative
after = heatmap_loss(forward(image, p)[0], target, flags)[0]
assert after < before
peaks, _ = argmax_xy(target)
bimodal = np.full((1, 5, 7), -1000.)
bimodal[0, 2, [1, 5]] = 0
mean, _ = integral_xy(bimodal)
start = np.array([[2., 2.], [2., 6.]])
end = np.array([[8., 6.], [8., 2.]])
field = paf_target(start, end, (9, 11))
scores = np.array([[paf_score(field, a, b) for b in end] for a in start])
total, pairs = best_pairs(scores)
xyz = np.array([[1., 2., 10.], [2., 3., 12.], [-1., 1., 8.]])
assert np.allclose(project(xyz), project(2*xyz))
return {'parameters': sum(a.size for a in p), 'lossBefore': before, 'lossAfterOneStep': after,
'inputGradientNorm': float(np.linalg.norm(dx)), 'targetArgmaxXY': peaks.tolist(),
'targetCoordinateError': np.linalg.norm(peaks-joints, axis=1).tolist(),
'twoPeakExpectationXY': mean.tolist(), 'pafScores': scores.tolist(),
'pafPairs': [list(pair) for pair in pairs], 'pafTotal': total,
'onePersonOKS': oks(joints+2, joints, flags, area=100., sigmas=np.full(3, .1)),
'sameProjectionDifferent3D': True,
'scope': 'synthetic three-joint CNN step, separate oracle PAF and geometry fixtures; not a pose benchmark'}
if __name__ == '__main__':
print(json.dumps(demo(), indent=2))
Output from the checked environment; final floating-point digits may vary across platforms:
{
"parameters": 127,
"lossBefore": 0.025322528841920867,
"lossAfterOneStep": 0.023160444829314047,
"inputGradientNorm": 0.002874659391743485,
"targetArgmaxXY": [
[
4,
5
],
[
10,
6
],
[
7,
12
]
],
"targetCoordinateError": [
0.3535533905932738,
0.5590169943749475,
0.5
],
"twoPeakExpectationXY": [
[
3.0,
2.0
]
],
"pafScores": [
[
0.7761653019831731,
0.34695847234595634
],
[
0.34695847234595634,
0.7761653019831731
]
],
"pafPairs": [
[
0,
0
],
[
1,
1
]
],
"pafTotal": 1.5523306039663463,
"onePersonOKS": 0.3678794411714424,
"sameProjectionDifferent3D": true,
"scope": "synthetic three-joint CNN step, separate oracle PAF and geometry fixtures; not a pose benchmark"
}
The loss falls from 0.0253225 to 0.0231604 after one step. That checks descent on this synthetic sample, not generalization. targetArgmaxXY measures decoding of target heatmaps; it must not be reported as trained-network localization accuracy. The crossed-limb field favors the correct pairings despite the shorter wrong connections.
For fixed channel sizes the CNN cost grows linearly with image area; a general convolution costs O(HWk²CinCout). Heatmap storage is O(KHW). With Na and Nb candidates and S samples per candidate connection, PAF score construction is O(NaNbS) for one limb type. Ignoring assignment-tuple copying, the tiny matching solver has O(NaNb2^Nb) transition work; cached assignment tuples add up to O(Na2^Nb min(Na,Nb)) storage. It caps columns at 12 and is not a scalable replacement for a production assignment solver.
A plausible skeleton can still be wrong
Occlusion and identity. A network can complete a hidden limb from context and still choose the wrong person. Test crowded, truncated and unusual poses separately. Report missing detections and swapped identities, not just the error of successfully matched visible joints.
Geometry and deployment. Crop errors, mismatched left/right labels and inconsistent resize conventions can survive a visual spot check. Track the full transform from original image to heatmap and back. If a fitness application uses joint angles, examine angle error and failure cases as well as keypoint position. A pose score alone does not establish biomechanical validity or a medical conclusion.
Depth ambiguity. Under a pinhole camera with positive depth, image coordinates obey:
Multiplying X,Y,Z by the same positive constant leaves u,v unchanged. Thus even a perfect 2D skeleton does not determine absolute 3D scale. Our code checks this exact ambiguity. Extra views, calibrated scale information and learned body priors impose different additional constraints; none should be silently assumed.
VideoPose3D applies temporal convolutions to 2D joint sequences and uses back-projection in semi-supervised learning. Its ordinary context includes future frames; a causal configuration is a separate choice. Root-relative pose and global trajectory are also separate outputs before perspective projection. A smooth, self-consistent prediction can still reflect an incorrect depth interpretation. Temporal model and projection
Evidence and people. A skeleton stream may reveal behavior even when faces are removed. Collect only necessary footage, keep evaluation splits separated by people or recordings when appropriate, and document annotation scope. The six papers here establish selected method changes; this is not a claim that all later pose models share their architecture or that their benchmark numbers remain current.
Four checks before trusting a skeleton
1. Explain a missing joint
One joint has visibility 1 and another has visibility 0. Which contributes to this article’s loss and OKS? What should happen if both flags are 0?
Answer: Visibility 1 is labelled but occluded and contributes; visibility 0 does not. Our all-unlabelled loss is zero with zero gradient, while one-person OKS is None. This avoids inventing an accuracy score where no joint is available. The full COCO evaluator has additional ignored-person handling.
2. Calculate and change scale
A joint error is (2,2) pixels, object area is 100 and its COCO-style sigma is 0.1. Calculate its OKS term. Then double every coordinate and quadruple area.
Answer: Squared distance is 8, κ is 0.2, and the denominator 2×100×0.2² is 8. The term is exp(−1), approximately 0.367879. Doubling coordinates makes squared distance 32 and area 400, leaving the exponent unchanged. Forgetting κ=2σ would incorrectly produce exp(−4).
3. Diagnose a decoder and a matcher
Create two equal heatmap peaks at (1,2) and (5,2). Compare argmax with integral decoding. Separately, test greedy association on rows [0.9,0.8] and [0.8,0].
Answer: Our row-major argmax picks (1,2); integral decoding gives (3,2), even when that position has zero probability. Neither result represents both hypotheses. Greedy matching takes 0.9 and leaves the zero edge; the exact partial matching chooses the cross edges for 1.6. Decoding ambiguity and assignment conflicts are distinct failures.
4. Design an honest 3D comparison
A model is trained on complete video clips and another operates live. Their authors report different MPJPE values. What must you match before ranking them?
Answer: Check dataset split, joint set, input 2D detections versus ground-truth joints, units, root handling, scale/rotation alignment and access to future frames. Match those conditions or report separate results. Also measure latency for the causal system. A lower error under future context and Procrustes alignment does not establish better absolute online tracking.
Read the method changes in their original versions
DeepPose’s first preprint was submitted on 17 December 2013; Stacked Hourglass on 22 March 2016; PAF on 24 November 2016; Integral Regression on 22 November 2017; VideoPose3D on 28 November 2018; and HRNet on 25 February 2019. These are submission dates, not interchangeable conference or software-release dates. DeepPose history, Hourglass history, PAF history, Integral history, VideoPose3D history, HRNet history
Read the representation before the leaderboard: what is predicted, in which frame, with what supervision, and how is it decoded and evaluated? Then inspect which stage fails when the example is perturbed. Our research notes preserve exact paper versions and fixed MMPose/COCO source ranges; the numeric tests check our original operators, not upstream model accuracy.
Make a prediction, then check
What does COCO visibility 1 mean for a labelled joint in this OKS?
Learning objectives
- Track joint coordinates through crop, heatmap decoding and inverse transforms.
- Differentiate a complete small CNN and integral coordinate decoder.
- Explain person association and verify a global matching counterexample.
- Distinguish OKS, PCK, MPJPE and the evidence needed for 3D claims.
Prerequisites & connections
Explore related knowledge →References
- DeepPose: Human Pose Estimation via Deep Neural Networks
Alexander Toshev; Christian Szegedy · 2013 - Stacked Hourglass Networks for Human Pose Estimation
Alejandro Newell; Kaiyu Yang; Jia Deng · 2016 - Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields
Zhe Cao; Tomas Simon; Shih-En Wei; Yaser Sheikh · 2016 - Integral Human Pose Regression
Xiao Sun; Bin Xiao; Fangyin Wei; Shuang Liang; Yichen Wei · 2017 - Deep High-Resolution Representation Learning for Human Pose Estimation
Ke Sun; Bin Xiao; Dong Liu; Jingdong Wang · 2019 - 3D human pose estimation in video with temporal convolutions and semi-supervised training
Dario Pavllo; Christoph Feichtenhofer; David Grangier; Michael Auli · 2018 - MMPose fixed MSRA heatmap codec
OpenMMLab contributors · 2025 - MMPose fixed Gaussian heatmap targets
OpenMMLab contributors · 2025 - MMPose fixed maximum decoding
OpenMMLab contributors · 2025 - MMPose fixed keypoint evaluation functions
OpenMMLab contributors · 2025 - MMPose fixed COCO keypoint constants
OpenMMLab contributors · 2025 - COCO fixed keypoint annotation format
COCO contributors · 2023 - COCO fixed keypoint evaluation definition
COCO contributors · 2023 - COCO fixed keypoint evaluator
COCO contributors · 2019 - DeepPose: Human Pose Estimation via Deep Neural Networks — submission history
Alexander Toshev; Christian Szegedy · 2013 - Stacked Hourglass Networks for Human Pose Estimation — submission history
Alejandro Newell; Kaiyu Yang; Jia Deng · 2016 - Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields — submission history
Zhe Cao; Tomas Simon; Shih-En Wei; Yaser Sheikh · 2016 - Integral Human Pose Regression — submission history
Xiao Sun; Bin Xiao; Fangyin Wei; Shuang Liang; Yichen Wei · 2017 - 3D human pose estimation in video with temporal convolutions and semi-supervised training — submission history
Dario Pavllo; Christoph Feichtenhofer; David Grangier; Michael Auli · 2018 - Deep High-Resolution Representation Learning for Human Pose Estimation — submission history
Ke Sun; Bin Xiao; Dong Liu; Jingdong Wang · 2019
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-07 · Codex single-AI-author technical check: scoped original papers and fixed MMPose/COCO source reading, all small-CNN parameter/input finite differences, independent coordinate/matching/metric tests, complete bilingual comparison and measured diagram binding. Not human peer review or pretrained pose benchmark reproduction.
- Nineteen independent numerical tests plus four complete bilingual/output/metadata/figure checks. All127 CNN parameters and36 inputs checked by central differences; integral gradients at three temperatures, exhaustive matching, exact PAF/OKS/geometry cases and invalid inputs.
- Compared both full texts, eight equations, complete code/output, four explained exercises and20 scoped sources. Preserved occluded versus unlabeled semantics, kappa=2*sigma, oracle versus learned results, target argmax versus prediction quality, version/date boundaries and 3D projection ambiguity.
Source locations checked:
- DeepPose: Human Pose Estimation via Deep Neural Networks · Physical pages 2–3 complete: normalized joint regression, shared image evidence and opening cascade. Remaining architecture/training results not audited; figure/text channel differences not used.
- Stacked Hourglass Networks for Human Pose Estimation · Physical pages 3–6 complete: single-person scope, repeated scale processing, nearest-neighbor/additive skips, intermediate supervision and TWO stacks in this v1. Later training/results not audited.
- Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields · Physical pages 3–5 complete; physical page 4 visually inspected: two branches, maximum joint targets, rectangular unit-vector PAF, overlapping-person average, normalized line integral and Hungarian matching per limb type. Not the complete whole-body implementation.
- Integral Human Pose Regression · Physical pages 3–4 complete; physical page 4 visually inspected: baseline target/loss choices, spatial softmax and coordinate expectation, differentiable coordinate loss. Local two-peak counterexample qualifies the paper claim about multimodality.
- Deep High-Resolution Representation Learning for Human Pose Estimation · Physical pages 3–4 complete: reduced-resolution stem, progressively parallel branches, repeated sum fusion, top-resolution heatmap head, opening COCO evaluation setting. Generated page 4 image NOT visually inspected.
- 3D human pose estimation in video with temporal convolutions and semi-supervised training · Physical page 3 complete: temporal dilated convolution, past/future context versus causal variant, valid convolution and boundary replication, opening semi-supervised projection and separate trajectory network. Later training/results not audited.
- MMPose fixed MSRA heatmap codec · Complete file: encode/decode, scale factor input/heatmap, default rounded versus unbiased target dispatch, maximum then refinement then scale. Called refinement utilities not audited or run.
- MMPose fixed Gaussian heatmap targets · Lines 120–204 complete 2D generate_gaussian_heatmaps: radius 3*sigma, rounded centers, cropped Gaussian support and visibility. Lines 1–114 3D function read incidentally; no 3D implementation claim. Unbiased target function not read.
- MMPose fixed maximum decoding · Lines 156–199 get_heatmap_maximum: row-major XY decoding and score<=0 coordinate=-1. Other functions not audited.
- MMPose fixed keypoint evaluation functions · Lines 1–108 and 324–381: normalized distances, strict PCK comparison and valid-joint averaging; MPJPE none/scale/Procrustes choices. Similarity-transform helper not read, no package executed.
- MMPose fixed COCO keypoint constants · Lines 170–186 tail: joint weights and COCO keypoint sigmas. Skeleton/name definitions above not audited.
- COCO fixed keypoint annotation format · Keypoint Detection data-format section: zero-index coordinates, v=0/1/2 semantics, labeled count and skeleton format; unrelated task sections not audited.
- COCO fixed keypoint evaluation definition · Text beginning through metrics and opening ignored-person explanation (~7400 characters): OKS, segment area, kappa=2*sigma, predicted visibility ignored, AP .50:.05:.95, maxDets20. Official quoted annotation-distribution interpretations not independently validated.
- COCO fixed keypoint evaluator · Pose-specific lines84–125,192–235,519–550: ignore unlabeled/crowd GT, computeOks using (2*sigma)^2 and supplied annotation area, all-unlabeled expanded-bbox branch, maxDets20 and sigmas. Existing instance evaluation record preserved. No COCO package execution.
- DeepPose: Human Pose Estimation via Deep Neural Networks — submission history · Title, authors and actual v1 submission-history entry read with web tool; no full-paper claim from metadata. First submission 2013-12-17.
- Stacked Hourglass Networks for Human Pose Estimation — submission history · Title, authors and actual v1 submission-history entry read with web tool; no full-paper claim from metadata. First submission 2016-03-22.
- Realtime Multi-Person 2D Pose Estimation using Part Affinity Fields — submission history · Title, authors and actual v1 submission-history entry read with web tool; no full-paper claim from metadata. First submission 2016-11-24.
- Integral Human Pose Regression — submission history · Title, authors and actual v1 submission-history entry read with web tool; no full-paper claim from metadata. First submission 2017-11-22.
- 3D human pose estimation in video with temporal convolutions and semi-supervised training — submission history · Title, authors and actual v1 submission-history entry read with web tool; no full-paper claim from metadata. First submission 2018-11-28.
- Deep High-Resolution Representation Learning for Human Pose Estimation — submission history · Title, authors and actual v1 submission-history entry read with web tool; no full-paper claim from metadata. First submission 2019-02-25.
Related topics