Refresh the v0.4.0-small demo and shorten the model card
Browse filesReplace both demo formats with the held-out ASPset clip run on v0.4.0-small. Keep the current weights, key benchmark numbers and ONNX interface in the card, with links to the full documentation.
- README.md +13 -51
- sample-aspset.gif +2 -2
- sample-aspset.mp4 +2 -2
README.md
CHANGED
|
@@ -11,63 +11,25 @@ tags:
|
|
| 11 |
|
| 12 |
# open-body-tracker
|
| 13 |
|
| 14 |
-
|
| 15 |
-
from a 256×192 person crop. Code, demos and documentation: **https://github.com/yuru-lab/open-body-tracker**
|
| 16 |
-
· browser demo: https://yuru-lab.github.io/open-body-tracker/
|
| 17 |
|
| 18 |
-
|
| 19 |
|
| 20 |
-
|
| 21 |
-
as v0.3.0 and much more accurate in 3D. **obt-body-v0.4.0** (ViT-B/14) is the most accurate. Each has an INT8 file
|
| 22 |
-
for CPUs. Version history and all benchmarks:
|
| 23 |
-
[docs/MODELS.md](https://github.com/yuru-lab/open-body-tracker/blob/main/docs/MODELS.md).
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|---|---:|---:|---:|
|
| 27 |
-
| Harmony4D test 06/16, PA-MPJPE (scored once) ¹ | 49.4 mm | **45.2 mm** | — |
|
| 28 |
-
| Harmony4D test 01/05/15, PA-MPJPE | 52.8 mm | **48.9 mm** | 71.3 mm |
|
| 29 |
-
| ASPset-510 held-out subjects, PA-MPJPE ² | 50.3 mm | **48.1 mm** | 53.7 mm |
|
| 30 |
-
| COCO val2017 keypoint AP (2D, GT boxes, clean) | 69.9 | **72.8** | 71.6 |
|
| 31 |
-
| CPU, one person, fp32 / int8 (ONNX Runtime, 4 threads, Core i5-12600) | 82 / 48 ms | 248 / 120 ms | 111 / 47 ms |
|
| 32 |
-
|
| 33 |
-
¹ Kept closed until v0.4.0 was fixed. InstantHMR medium-commercial on the same crops: 47.1 mm (paired difference to
|
| 34 |
-
v0.4.0: −1.9 mm [−2.4, −1.4]). ² Trained on 7 other subjects filmed in the same ASPset studio. The v0.4.0 recipe
|
| 35 |
-
was chosen on ASPset and Harmony4D 01/05/15; Harmony4D 06/16 is the untouched test.
|
| 36 |
-
|
| 37 |
-
v0.4.0 models give their 3D in the crop's ray frame (ONNX metadata `obt.frame = ray`): as seen by the camera turned
|
| 38 |
-
to look straight through the crop centre. `open_body_tracker.pipeline.PosePipeline` turns it into camera axes with
|
| 39 |
-
the camera's focal length (assumed when unknown); see
|
| 40 |
-
[geometry.py](https://github.com/yuru-lab/open-body-tracker/blob/main/src/open_body_tracker/geometry.py).
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
| 45 |
|
| 46 |
-
|
| 47 |
|
| 48 |
-
|
| 49 |
-
|---|---|
|
| 50 |
-
| `obt-body-v0.4.0-small.onnx`, `obt-body-v0.4.0.onnx` | ONNX fp32 (116 MB, 384 MB). Input `crop` float32 (N,3,256,192) RGB 0–255. Outputs `xy` (N,23,2) crop px, `score` (N,23), `xyz` (N,23,3) metres in the crop's ray frame, hip midpoint at 0, and the raw `logits_x/y/X/Y/Z`. Flip test: average the decoded outputs of the crop and its mirror (`obt.flip = outputs`) |
|
| 51 |
-
| `obt-body-v0.4.0-small-fp16.onnx`, `obt-body-v0.4.0-fp16.onnx` | the same with fp16 weights (58 MB, 192 MB; used by the WebGPU demo) |
|
| 52 |
-
| `obt-body-v0.4.0-small-int8.onnx`, `obt-body-v0.4.0-int8.onnx` | INT8 for CPUs (53 MB, 140 MB), same inputs and outputs |
|
| 53 |
-
| `obt-body-v0.4.0-small.safetensors`, `obt-body-v0.4.0.safetensors` | PyTorch weights (EMA; the model configuration is in the file metadata); load with `open_body_tracker.weights.load_model` |
|
| 54 |
-
| `obt-body-v0.3.0.onnx` | ONNX fp32 (382 MB). Input `crop` float32 (N,3,256,192) RGB 0–255. Outputs `xy` (N,23,2) crop px, `score` (N,23), `xyz` (N,23,3) metres, and the raw `logits_x/y/X/Y/Z` used by the optional flip test |
|
| 55 |
-
| `obt-body-v0.3.0-fp16.onnx` | the same with fp16 weights (191 MB; used by the WebGPU demo) |
|
| 56 |
-
| `obt-body-v0.3.0-int8.onnx` | INT8 for CPUs (142 MB), same inputs and outputs |
|
| 57 |
-
| `obt-body-v0.3.0.safetensors` | PyTorch weights (EMA); load with `open_body_tracker.weights.load_model` |
|
| 58 |
-
| `obt-body-v0.2.0*`, `obt-body-v0.1.0*` | earlier releases under the same naming (v0.2.0 = v0.3.0 weights) |
|
| 59 |
-
| `obt-body-v2*`, `obt-body-v1*`, `obt-h3c*` | the same files under their earlier names, kept for old code (`obt-h3c` = v0.1.0 without the logit outputs) |
|
| 60 |
-
| `yolox_nano.onnx`, `yolox_tiny.onnx` | unmodified mirrors of the official Megvii YOLOX 0.1.1rc0 ONNX detectors (Apache-2.0, `YOLOX-LICENSE.txt`), mirrored for browser CORS |
|
| 61 |
|
| 62 |
-
|
| 63 |
-
[MODEL_CARD.md](https://github.com/yuru-lab/open-body-tracker/blob/main/MODEL_CARD.md).
|
| 64 |
|
| 65 |
-
|
| 66 |
|
| 67 |
-
|
| 68 |
-
credits. Part of the training labels were predicted by [SAM 3D Body](https://github.com/facebookresearch/sam-3d-body)
|
| 69 |
-
(Meta), with thanks to Meta; the weights contain no SAM 3D Body code or weights. Until 2026-11-21 the weights were
|
| 70 |
-
distributed under the SAM License; copies obtained then may still be used under it. `SAM-LICENSE.txt` is kept for
|
| 71 |
-
reference and governs SAM 3D Body itself. Our reasoning and what is not settled:
|
| 72 |
-
[docs/LICENSING.md](https://github.com/yuru-lab/open-body-tracker/blob/main/docs/LICENSING.md).
|
| 73 |
-
Training images (COCO 2014 and Open Images V7, CC BY 2.0 only; ASPset-510, CC0; Harmony4D, MIT) are not included.
|
|
|
|
| 11 |
|
| 12 |
# open-body-tracker
|
| 13 |
|
| 14 |
+
Track 23 full-body keypoints in 2D and metric 3D from one RGB camera.
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
[Browser demo](https://yuru-lab.github.io/open-body-tracker/) · [Code and quick start](https://github.com/yuru-lab/open-body-tracker) · [Benchmarks and older models](https://github.com/yuru-lab/open-body-tracker/blob/main/docs/MODELS.md)
|
| 17 |
|
| 18 |
+

|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
+
*obt-body-v0.4.0-small on a held-out [ASPset-510](https://github.com/anibali/aspset-510) clip (CC0). Grey is the multi-view reference. PA-MPJPE is 59 mm with ASPset person boxes and no smoothing.* [Watch the MP4](https://huggingface.co/Yurup/open-body-tracker/resolve/main/sample-aspset.mp4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
+
| Model | Harmony4D 06/16 PA-MPJPE | COCO val2017 clean AP | CPU INT8 |
|
| 23 |
+
|---|---:|---:|---:|
|
| 24 |
+
| **obt-body-v0.4.0-small** (default, ViT-S/14) | 49.4 mm | 69.9 | **48 ms** |
|
| 25 |
+
| **obt-body-v0.4.0** (ViT-B/14) | **45.2 mm** | **72.8** | 120 ms |
|
| 26 |
|
| 27 |
+
Harmony4D 06/16 was held out until both models were fixed. CPU times are for one person on a Core i5-12600 with four ONNX Runtime threads.
|
| 28 |
|
| 29 |
+
## Weights and inference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
+
Both models come in ONNX FP32 (`.onnx`), FP16 (`-fp16.onnx`), CPU INT8 (`-int8.onnx`), and PyTorch (`.safetensors`). [File checksums](./SHA256SUMS)
|
|
|
|
| 32 |
|
| 33 |
+
ONNX input `crop` is a float32 RGB batch of shape `(N, 3, 256, 192)` with values 0–255. Outputs include `xy` in crop pixels, `score` for each joint, and `xyz` in metres relative to the hip midpoint. Raw v0.4.0 `xyz` uses the crop's ray frame. `PosePipeline(..., focal=focal_px)` converts it to camera axes.
|
| 34 |
|
| 35 |
+
Weights are released under [Apache-2.0](./LICENSE). See the [model card](https://github.com/yuru-lab/open-body-tracker/blob/main/MODEL_CARD.md) for training data and limitations, [NOTICE](./NOTICE) for third-party credits, and the [licensing notes](https://github.com/yuru-lab/open-body-tracker/blob/main/docs/LICENSING.md) for license history.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sample-aspset.gif
CHANGED
|
|
Git LFS Details
|
|
|
Git LFS Details
|
sample-aspset.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3b08baaf683cda204df515d45d1623994e3d01d7191e22f490c604de505c5085
|
| 3 |
+
size 1133871
|