跳转到内容

C401 第 2 课:手与身体

相机位姿告诉你头在哪里。手部姿态告诉你佩戴者做了什么,对机器人学习来说,它通常就是变成动作的那个信号。本课讲解处理流程怎样从头戴相机得到手部姿态,怎样把它转到固定的房间坐标系,以及怎样估计身体的其余部分。完整的讲解见由头戴相机估计手部姿态、世界坐标系中的手物交互和由第一人称传感器估计全身姿态。

另见术语表的手与身体部分。

术语 含义
2D 关键点(2D keypoints) 手部标志点的像素位置;常见的布局有 21 个点(手腕,加上每根手指上的四个点)
MANO 一种参数化手部网格,有 778 个顶点和 21 个关节,由 48 个姿态值和 10 个形状值驱动;非商业许可协议
SMPL、SMPL-H、SMPL-X 参数化身体模型;SMPL-H 加上了 MANO 手,SMPL-X 加上了手和脸;全都只许可用于非商业研究
相机坐标系 / 世界坐标系(Camera frame / world frame) 相机坐标系下的坐标随头部一起运动;世界坐标系下的坐标固定在房间上,有一根轴沿重力方向
MPJPE / PA-MPJPE 平均每关节位置误差,单位 mm;PA- 表示经过 Procrustes 对齐之后,所以它只衡量形状和关节弯曲状态,不衡量手在哪里
W-MPJPE / WA-MPJPE 世界坐标系中的关节误差,只对齐最初几帧(漂移计入误差)或对齐整个序列(漂移被掩盖)之后计算
Three ways to describe a hand Three schematic panels of how pipelines describe a hand. One, 2D keypoints: 21 pixel positions, the wrist and four points along each finger, which locate the hand in the image only. Two, a kinematic skeleton with fixed bone lengths, as in UmeTrack: 20 joint angles, each about one rotation axis, plus a 6-DoF wrist pose, with a per-user rest skeleton whose scale is estimated over the first 30 frames; in the drawing, double rings at the knuckles stand for two single-axis rotations meeting there, a schematic choice. Three, the MANO mesh: 778 vertices and 21 joints, driven by 48 pose values, 15 finger joints plus the wrist orientation at 3 each, and 10 shape values; it stops at the wrist, and its licence is non-commercial. Drawings are schematic. 2D keypoints 21 pixel positions: wrist + 4 per finger image only Skeleton, fixed bones 20 joint angles, one axis each, + 6-DoF wrist (UmeTrack) MANO mesh 778 vertices, 21 joints; 48 pose + 10 shape values stops at the wrist Schematic
Three levels of hand description. Keypoints give 21 points per hand (the wrist and four along each finger) and, in 2D, locate the hand in the image only. A kinematic skeleton with fixed bone lengths, as in UmeTrack, has 20 single-axis joint angles plus a 6-DoF wrist pose. The MANO mesh has 778 vertices and 21 joints, driven by 48 pose and 10 shape values; it stops at the wrist, and its licence is non-commercial. Drawings are schematic.
  1. 2D 关键点、框和掩码只在图像中定位手。HaMeR 的作者警告说,仅凭 2D 关键点,“it is possible to recover an unnatural pose that still reprojects well to the image”(意为:有可能恢复出一个不自然的姿态,而它重投影到图像上仍然吻合得很好)(HaMeR)。
  2. 骨长固定的运动学骨架。UmeTrack 把手建模为 20 个关节角加一个六自由度的手腕位姿(UmeTrack)。
  3. MANO 网格,单图像模型和大多数手物基准输出的就是它。它只到手腕为止。

来源:手部的表示方式。

当前的采集设备用四种方式得到手部姿态,大致按测量手的直接程度排列(由头戴相机估计手部姿态):

途径 例子 长处 代价
手套和追踪器 EgoScale 录制 Manus 手套和 Vive 追踪器 能测到任何相机都看不见的手指 每一帧里手都被遮盖
头显自带的追踪 EgoDex,用 Apple Vision Pro 录制 录制时就有追踪结果 绑定在那台设备上;仍然是模型的预测
已标定头戴采集设备上的多视角追踪 UmeTrack 的设计;RoboCap 和 MEgoVista 的处理流程 测量手的深度,而不是猜测 模型学到的是它训练时所用的相机布局
单目素材上的单图像模型 HaMeR、WiLoR 适用于任何视频,包括大型单目语料库 形状好,深度弱

有两项发现决定了多相机采集设备应当怎样处理。第一,对每台相机各运行一个单图像模型、再把输出做三角化,是行不通的:“direct triangulation of monocular outputs produces distorted hands that accumulate many centimeters of error in the local hand frame alone”(意为:对单目输出直接做三角化会产生变形的手,仅在手的局部坐标系内就累积了许多厘米的误差)(RoboCap)。同一篇论文给出的原因是,每个视角都已经对形状和深度做了自己的猜测,所以三角化合并的是两个互不一致的猜测,而不是两个测量值(为什么对单视角网格做三角化行不通)。各视角必须通过标定来合并,在模型内部或在一次优化中完成。第二,一个在某一款头显上训练的多视角模型,换到另一款头显上时,用两个视角比用一个视角更差;在两款头显上一起训练,并随机遮掉一个视角之后,第二个视角才有帮助(HOT3D,Table 2)。

Multi-view hand tracking: image edges and new headsets Two panels of multi-view hand tracking results, error in millimetres, lower is better. Left, HANDS23 on AssemblyHands (Table 3): the ResNet-50 baseline's error rose from 20.31 mm within 200 px of the image centre to 24.85 mm beyond 250 px; the winning entry JHands, which warps each crop to a perspective view, went from 12.35 mm to 13.72 mm. Right, HOT3D (Table 2), one view against two: a UmeTrack model trained only on Quest 2 data and tested on Quest 3 scored 24.2 mm with one view and 25.6 mm with two, so the second view made it worse on a new headset. Trained on both datasets with one view randomly masked, it scored 13.4 mm with one view and 9.5 mm with two on the UmeTrack test set, and 15.4 mm and 10.9 mm on HOT3D. HANDS23: centre vs image edge 0 10 20 30 20.31 24.85 Baseline 12.35 13.72 JHands < 200 px from centre > 250 px from centre HOT3D: one view vs two 0 10 20 30 24.2 25.6 Quest 2 only, Quest 3 test 13.4 9.5 Both headsets, UmeTrack test 15.4 10.9 Both headsets, HOT3D test one view two views MPJPE / MKPE (mm)
Two measured limits of multi-view hand tracking from head cameras. Left: in the HANDS23 challenge on AssemblyHands, error grows toward the edge of the fisheye image, less so for the winner, which warps each crop to a perspective view (Table 3). Right: in HOT3D, a model trained on one headset was worse with two views than one on a different headset; trained on both headsets with one view randomly masked, the second view cut error by about a third (Table 2).

这张图还显示了鱼眼图像的周边区域:在 HANDS23 挑战赛中,误差朝图像边缘方向增大,而把每个裁剪区域变换成透视视图的那个参赛方案增大得较少(由头戴相机估计手部姿态)。

在头戴相机视频上运行的手部追踪器,报告的是相对于运动中的相机的位置。EgoGrasp 的作者写道:“a user leaning towards an object is otherwise indistinguishable from lifting an object in the local frame”(意为:否则,在局部坐标系中,使用者向物体探身与把物体举起是无法区分的)(EgoGrasp)。世界坐标系需要三样东西:每一帧的头部轨迹(第 1 课)、手的公制深度,以及在手离开视野期间继续追踪手的办法(世界坐标系中的手物交互)。

在双目或多相机头戴设备上,公制深度是测量出来的。MEgoVista 在它的双目对上用双目得到手的公制深度。HOT3D 的双目基线方法在给定真值物体掩码的条件下,在 Aria 上把 64.4% 的未知手持物体定位到 5 cm 以内,而对齐到 SLAM 点的单目深度只有 14.3%(双目头戴设备上的公制尺度)。

在单目素材上,深度必须来自别的地方。HaWoR 把手从 SLAM 的输入中用掩码去掉,并把 SLAM 深度缩放到一个公制深度模型的结果上;EgoAllo 用一个由头部轨迹驱动的全身运动先验来约束手的位置(从单目素材提升手部到 3D)。

Hand shape against hand position from one camera Two panels of hand error from single-camera methods, in millimetres; amber bars are world-frame error, where the hand is in the room, and blue bars are aligned error, hand shape only. Top, HOT3D, from HaWoR (Zhang et al., CVPR 2025, Table 3): world-frame MPJPE 156.03 mm for HaMeR plus SLAM, 151.67 mm for WiLoR plus SLAM and 33.20 mm for HaWoR, whose aligned PA-MPJPE is 4.79 mm. Bottom, Ego-Exo4D, from EgoAllo (Yi et al., CVPR 2025, Table 3): world-frame hand error 237.90 mm for HaMeR alone, 131.45 mm for EgoAllo guided by HaMeR and 60.08 mm for EgoAllo with 3D wrist positions from Aria's hand tracking; HaMeR's aligned PA-MPJPE is 13.04 mm. Single-view models get hand shape right to about a centimetre or better, but their position in the world can be off by tens of centimetres. HOT3D (HaWoR, Table 3) HaMeR + SLAM, world 156.03 mm WiLoR + SLAM, world 151.67 mm HaWoR, world 33.20 mm HaWoR, aligned shape 4.79 mm Ego-Exo4D (EgoAllo, Table 3) HaMeR alone, world 237.90 mm EgoAllo + HaMeR, world 131.45 mm EgoAllo + Aria wrists, world 60.08 mm HaMeR, aligned shape 13.04 mm 0 50 100 150 200 250 hand joint error (mm)
Single-camera hand models get the hand's shape right (aligned error, blue) but not where it is in the room (world-frame error, amber). HaWoR's hand-masked SLAM and metric depth cut world error on HOT3D (Table 3); on Ego-Exo4D, EgoAllo's body prior helps, and tracked 3D wrists help most (Table 3). The two benchmarks use different metrics and data, so compare within a panel.

图中的规律就是这节课的要点:单相机模型把手的形状估计对了,把手的位置估计错了。原因在于投影本身。一只宽度为 S 的手在深度 Z 处,在图像上宽 f·S/Z 个像素,所以一幅图像只能确定比值 S/Z,离镜头近的小手看起来和离得远的大手一样。模型的深度建立在它学到的手的大小上,而手指的弯曲状态完全不依赖深度(为什么单图像模型会把深度估计错)。在 HOT3D 上,HaWoR 的 W-MPJPE 为 33.20 mm,而 HaMeR 加 SLAM 为 156.03 mm,HaWoR 的 PA-MPJPE 为 4.79 mm。在 Ego-Exo4D 上,HaMeR 的对齐后误差(PA-MPJPE 13.04 mm)始终优于 EgoAllo 的每一个变体,而它的世界坐标系误差为 237.90 mm,使用被追踪的 3D 手腕的 EgoAllo 则为 60.08 mm。要把 PA-MPJPE 读作形状分数,绝不要读作位置分数。

头戴采集设备看到的主要是外部世界,而不是佩戴者。它测量到什么,决定了你可以期待的精度,而且在各个数据集上这个排序是一致的:传感器观察到的身体部分越多,误差越低(由第一人称传感器估计全身姿态)。

采集设备测量到什么 已发表的范围 来源
头部轨迹(以及朝外的视频) AMASS 上 119.7 mm,Aria Digital Twin 上 155.1 mm,RICH 上 176.2 mm EgoAllo
头部加双手手腕 AMASS 上 37.1 至 41.8 mm AGRoL、EgoPoser、AvatarPoser
向下看身体的相机 真实素材上身体 MPJPE 为 57.59 mm FisheyeViT

这些数字来自不同的数据集,不能直接比较。当腿部的确切运动很重要时,例如对人形机器人,当前的处理流程会在身体上加追踪器(身体追踪器)。如果目标机器人靠轮子行驶,就只需要底盘的路径:EMMA 把头部位姿投影到地平面上(移动操作)。

身体模型和手部模型的许可,与使用它们的代码的许可是分开的。MANO、SMPL 和 SMPL-X 是非商业性的,所以一个代码采用 MIT 许可、但会加载 MANO_RIGHT.pkl 或某个 SMPL 文件的模型,在使用上仍然是非商业性的,除非你持有该身体模型的商业许可(手部与身体姿态模型对比)。有些追踪器带有自己的限制:UmeTrack 是 CC BY-NC 4.0,WiLoR 的 README 写明 CC BY-NC-ND,HaWoR 的模型是 CC BY-NC-ND 4.0。匹配表把每一类素材与已发表的可选方案及其注意事项对应起来。

  1. 你的采集设备有一个已标定的双目对。一位同事提议在每台相机上运行 WiLoR,再对两个网格做三角化。实用指南对此报告了什么?
  2. 一篇论文报告它的手部 PA-MPJPE 为 5 mm。关于手在房间里的什么位置,这个数字告诉了你什么?
  3. 你有多年的单目头戴相机视频,没有 IMU。说出一种已发表的得到世界坐标系中手部的办法,以及它的尺度从哪里来。
  4. 你的目标机器人是会行走的人形机器人。头部加手腕的追踪对它的腿够用吗?
  5. 一个手部姿态代码仓库采用 MIT 许可。你能在商业产品中使用它吗?
  1. RoboCap 报告说,对单目输出做三角化会产生变形的手,误差达许多厘米;各视角必须通过标定来融合,在模型内部或在一次优化中完成。
  2. 什么也没有。Procrustes 对齐去掉了位置、旋转和缩放;它只衡量形状和关节弯曲状态。
  3. HaWoR:把手从 DROID-SLAM 中用掩码去掉,并在静态背景像素上把 SLAM 深度缩放到 Metric3D 的预测值。(EgoAllo 还需要公制的头部位姿,而没有 IMU 的单目视频给不出。)
  4. 不够。三个被追踪的点无法确定与上半身无关的腿部运动;人形机器人的处理流程会加身体追踪器。
  5. 只有在它不依赖非商业模型的情况下才可以。如果它加载 MANO 或 SMPL 文件,那么在没有身体模型商业许可的情况下,它在使用上就是非商业性的。