Our SMPL-X export did not make the hand hover. A four-variant experiment cleared hand fusion, smoothing and the world-frame rebase, and found one real bug: SMPL betas fed into the SMPL-X shape basis, inflating the body 7% and lifting the head joint 8 cm. That was too small to cause it. The 2D overlay proved contact the 3D prediction never had.

This came from a fighter-tracking pipeline we build and run: monocular coaching video in, GVHMR body motion out, hand pose fused in, smoothed, exported as an animated GLB for a web viewer. A coach flagged one clip. On video, the athlete's hand rests on top of his head. In the 3D model, it floats above it.

What did the bug report actually show?

One clip, one claim. Our 2D reprojection overlay drew the predicted skeleton onto the source frames and the wrist landed on the head, so the prediction looked right. The exported 3D model showed a gap, so the export looked wrong. That reasoning pointed at everything between prediction and GLB. It was wrong, and only an experiment showed it.

The export path has several stages that could plausibly move a hand. Hand pose from a separate hand model is fused onto the body. Rotations are smoothed with a quaternion filter. The camera-frame motion is rebased into a ground-aligned world frame. The skeleton and mesh are rebuilt from shape parameters. Any of these could be the culprit, and a pipeline that touches 3D bodies at four points is a bad place to debug by intuition.

How did we isolate the lossy stage?

We ran a 2x2 matrix on the same clip and track: hand fusion on or off, crossed with smoothing at medium or off. Then we measured the same quantity in every variant, left-wrist-to-head distance, using forward kinematics computed straight from the exported GLB nodes. The reference was the camera-frame joints the predictor itself produced, before any export stage.

# experiment shape (simplified)
variants = {A: hands+smooth, B: no_hands+smooth,
            C: hands+no_smooth, D: no_hands+no_smooth}

ref = dist(pred_joints_incam[L_WRIST], pred_joints_incam[HEAD])   # before export

for v in variants:
    glb   = run_pipeline(clip, track, v)
    joint = forward_kinematics(glb.nodes, glb.animation)            # from the file itself
    mesh  = linear_blend_skin(glb.mesh, glb.skin, joint)
    report(v, dist(joint[L_WRIST], joint[HEAD]) - ref,             # joint level
              min_dist(mesh.hand_verts, mesh.head_verts))           # surface level

Two decisions made this work. First, we measured from the GLB file, not from our own in-memory arrays, because the file is what the viewer loads. Second, we measured at two levels. Joint distances tell you whether the skeleton moved. Hand-to-head mesh distances tell you whether the surfaces touch, which is what a coach actually sees.

One variant failed on the first attempt because the serverless GPU worker it landed on threw a CUDA kernel image error. That is a worker fault, not a pipeline bug, and the retry was clean. We have written up the RunPod serverless gotchas behind that kind of failure separately.

Which stages were innocent?

Three of the four suspects moved the hand by millimetres or not at all. Smoothing changed wrist-to-head distance by at most 4.7 mm. Hand fusion only writes finger joints, so the wrist was identical with it on or off. The world-frame rebase is a rigid yaw, translation and ground shift, so it cannot change any distance between two joints.

Over the 61-frame window around the contact (2.5 to 4.5 s), the numbers were:

VariantMin (m)Mean (m)Max (m)Mean error vs predictionRMS error
Prediction (camera frame)0.1900.3750.744--
A: SMPL-X, hands, smoothing0.1880.3860.802+0.0110.030
B: SMPL, no hands, smoothing0.2230.4060.757+0.0310.033
C: SMPL-X, hands, no smoothing0.1880.3860.803+0.0110.030
D: SMPL, no hands, no smoothing0.2230.4060.757+0.0310.033

A matches C and B matches D, so smoothing is out. The A/B difference is not the fingers either: with hands on, the exporter builds an SMPL-X body; with hands off, it builds an SMPL body. That is a model swap, and it led to the one real bug. The smoothing filter itself is covered in how we smooth GVHMR mocap jitter with quaternion Savitzky-Golay.

What goes wrong when SMPL betas are fed into SMPL-X shapedirs?

You get a different person. Shape parameters (betas) are coefficients on a learned shape basis, and SMPL and SMPL-X each learned their own basis. Our exporter took the predictor's ten SMPL betas, averaged over time, and multiplied them into the SMPL-X shapedirs. The coefficients were valid numbers, so nothing crashed. They just described a different body.

The SMPL-X model-transfer documentation is blunt about this: never copy parameters between the models, because the SMPL, SMPL+H and SMPL-X shape spaces are not compatible. Each comes from a separate training run. We knew that in principle. The code path still did it, because the call signature accepts a ten-dimensional beta vector from either model.

Measured against the prediction's own skeleton, the mismatched SMPL-X body was:

  • 7% taller in the torso: pelvis to head 0.616 m vs 0.577 m.
  • Longer in the arm: upper arm 0.282 m vs 0.269 m.
  • Different at the head: neck to head 0.172 m vs 0.093 m, so the SMPL-X head joint sits about 8 cm higher. Part of that is a model convention, since SMPL-X also carries jaw and eye joints that our export folds into Head.
  • Taller overall: mesh height 1.76 m vs 1.72 m.

This is the only stage in the export that loses information. It is worth fixing for its own sake: an athlete whose model is 4 cm taller and longer-armed than the prediction will get wrong reach, wrong guard height and wrong contact timing anywhere they get measured.

Why couldn't the betas mismatch explain the hover?

Because it moved things by 1 to 4 cm, and in the wrong direction. A bigger body with longer arms gets its hand closer to its head, not further away. The SMPL-X variants had 17 of 61 frames with hand surface within 2 cm of head surface. The correctly-shaped SMPL variants had only 12. The bug made contact more likely.

The joint-level error also partly cancels. The head joint rose, but the shoulder, arm and wrist grew with it, so the wrist-to-head distance error was only +1.1 cm mean. A bone-length audit catches this kind of mismatch. A task metric like "is the hand near the head" can hide it.

Then the mesh check settled it. In the exported GLB, the hand surface does touch the head: at t = 4.17 s the closest hand vertex is 2 mm from the closest head vertex. Every stage between prediction and file reproduced the prediction within about 3 cm RMS. The export was not the gap.

Where was the gap, then?

Most likely in the prediction itself. Before any export stage, the predicted wrist never got closer than 19 cm to the predicted head joint. The overlay showed contact because the projected points lined up in the image. A wrist can line up with a head in the image while sitting well in front of it along the camera's line of sight.

Monocular body recovery gets the image-plane position of a joint far more reliably than its depth. An overlay checks the reliable part and says nothing about the rest. We had been treating "the overlay looks right" as proof that the 3D was right, and that assumption pointed our debugging at the wrong half of the pipeline.

We are not claiming more than the data shows. Two other suspects remain outside this export path. The fused fingers were splayed rather than flat on the head, which is a separate hand-quality issue. And we did not examine the web viewer's video-to-model time sync or any scaling it applies. The investigation narrowed the problem. It did not close it.

How should you fix the shape-basis mismatch?

Never pass betas across model families. Either fit new SMPL-X betas to the SMPL rest-pose mesh by least squares through a vertex correspondence map between the two topologies, or keep a neutral SMPL-X body and rescale its bones to the predicted SMPL skeleton lengths. Both give you a body that matches what the predictor actually estimated.

# option 1: refit shape in the target basis (sketch)
smpl_rest  = smpl(betas_smpl, pose=zero)                 # predicted body, rest pose
target     = correspondence_map @ smpl_rest.vertices     # SMPL verts -> SMPL-X topology
betas_x    = argmin_b || smplx(b, pose=zero).verts - target ||^2   # solve once per person

# option 2: keep SMPL-X topology, match the skeleton
for bone in arm_and_spine_chain:
    scale bone offset to len(smpl_rest.joints[bone])

We weighed the two. Refitting betas gives the most faithful surface, but it is a solve per person and needs the correspondence data. Bone rescaling is cheap and keeps joint positions exact, which is what reach and contact metrics depend on, but the mesh around the rescaled bones can stretch. For a coaching product, joint accuracy matters more than skin, so bone length is the right first move. Refitting comes later, once surface contact is something we actually score.

Then add the guard that would have caught this on day one: after export, compare the GLB's rest-pose bone lengths to the predictor's skeleton and fail the job if any differ by more than a few percent. It is ten lines of code and it targets exactly the kind of mismatch that never throws an error.

What should a 3D pipeline team take from this?

Measure each stage against the stage before it, from the artifact the user actually loads, at both joint and surface level. Treat a 2D overlay as a 2D check only. And audit shape parameters at every model boundary, because a basis mismatch produces valid-looking numbers and a plausible body that is simply the wrong size.

The experiment cost a few hours and four GPU jobs. Without it, the obvious fix would have been to "repair" a hand fusion or smoothing stage that was already working, while the real shape bug stayed in place and the real depth problem stayed hidden. With a pipeline this long, controlled variants are cheaper than guessing.

So, why did our SMPL-X export make a hand hover? It didn't. The export had a real bug, SMPL betas in SMPL-X shapedirs, which made the body 7% bigger, and the fix is a basis-correct shape plus a bone-length check. But the hover started earlier, in a predicted depth that the 2D overlay could never have validated. If a stage only checks 2D, it can only prove 2D.