AQIRP SAM 3D Body (fine-tuned)
SAM 3D Body (DINOv3) fine-tuned on the AQIRP multi-view movement
dataset (2026-11, "v2"). Same architecture and file layout as the base model, so it is a drop-in replacement for
load_sam_3d_body.
| file | |
|---|---|
model.ckpt | {"state_dict", "iteration": 36000} (best of 40000 on the validation subset), fp32 |
model_config.yaml | the base model's config (unchanged) |
assets/mhr_model.pt | the base model's MHR body model (unchanged, from the base repository) |
train_config.yaml, best_val.json | training recipe and the validation-subset metrics of this checkpoint |
LICENSE | the SAM License (this model is distributed under it) |
Use
With the sam-3d-body repository:
from huggingface_hub import snapshot_download
from sam_3d_body import load_sam_3d_body
d = snapshot_download("gtc-hf/aqirp-sam-3d-body")
model, model_cfg = load_sam_3d_body(f"{d}/model.ckpt", mhr_path=f"{d}/assets/mhr_model.pt")
The loader unwraps state_dict and casts the backbone to bf16 as for the base model.
Training
- Data: synchronised 8-camera recordings of clinical and sports movement tasks in two rooms. Labels are checked multi-view 3D (23 joints: COCO-WholeBody body 17 + 6 foot points) and their projections. Split by person: 21 persons train (644,349 crops), 3 val (25,411 crops), 26 test (117,588 crops); the persons in val and test are not in train.
- Trained: the body branch on the 23 labelled joints (2D + 3D), all 32 DINOv3 blocks (layer decay 0.85); the other
47 MHR70 points, shape and scale coefficients and the hand boxes distilled toward the frozen base model; hand
decoder and prompt encoders frozen. AdamW, lr 1e-5 backbone / 1e-4 heads, 40k iterations x batch 24, cosine,
1x H100. See
train_config.yaml.
Results (ground-truth boxes, full inference)
Test persons (26 persons, 117,588 crops):
| AP | EPE px | multi-view MPJPE mm | MPJPE / N-MPJPE / PA-MPJPE mm | |
|---|---|---|---|---|
| base model | 86.9 | 10.09 | 31.4 | 75.7 / 67.9 / 40.6 |
| this model | 94.7 | 5.49 | 18.5 | 47.9 / 39.8 / 26.4 |
| small room only: base -> this | 82.3 -> 93.6 | 14.40 -> 7.09 | 43.4 -> 20.9 | 89.6 -> 52.3 MPJPE |
| large room only: base -> this | 94.3 -> 96.4 | 3.32 -> 2.98 | 13.5 -> 14.8 | 54.0 -> 40.9 MPJPE |
Validation persons (3 persons, 25,411 crops; they chose the checkpoint): AP 82.9 -> 92.3, EPE 12.66 -> 5.38 px, multi-view MPJPE 41.0 -> 21.5 mm, MPJPE / N-MPJPE / PA-MPJPE 87.5 / 77.4 / 49.2 -> 69.2 / 41.4 / 29.1 mm.
AP = COCO OKS AP with ground-truth boxes (23 joints, COCO-WholeBody sigmas); EPE = mean 2D joint error in pixels; multi-view MPJPE = unweighted DLT of the 2D over all views vs the labelled 3D. The test persons were never used for training or checkpoint selection; groups = all, each room, each person, each person x room. MPJPE: single view, camera frame, pelvis-aligned; N-MPJPE: plus scale; PA-MPJPE: plus Procrustes.
Known weaknesses: in the large room the multi-view error is higher than the base model's (test 13.5 -> 14.8 mm, validation 13.6 -> 16.5 mm; the large-room labels were triangulated from the base model's own 2D, which favours it). 9 of the 156 AP / EPE comparisons over the 78 test groups got worse than the base model, all in the large room (largest EPE 3.27 -> 3.75 px). On validation, ankles sit about 1 cm high and for one person the body is drawn ~13 % too small (single-view MPJPE 63.6 -> 89.0 mm; the scale-normalised N-MPJPE improves); 6 of 138 per-group comparisons got worse.
License and use
Distributed under the SAM License (LICENSE), like the base model (including assets/mhr_model.pt); any further
distribution must keep it. Publications using this model should acknowledge SAM 3D Body. The license's use
restrictions and trade-control terms apply.