PoseTrackerNet 1.0: specification
What the model takes, what it returns and how to read it: a 192 × 192 picture in, 39 keypoints of one person out.
You may not need this page
The recommended way to use PoseTrackerNet is through the PoseTracker SDKs, hosted page and API, which run on top of the model the processing that keeps its keypoints steady: following the person, sorting out impossible keypoints, smoothing, and settings chosen for each phone. The model files are also on Hugging Face, with access on request, approved automatically once the licence is accepted.
MoveNet remains PoseTracker's default model. PoseTrackerNet is turned on with poseEngine=posetrackernet on the hosted page, or model: 'posetrackernet' in the SDKs (an API key and an internet connection are required).
This page is for reading the model's files directly. With the files alone, the preparation of the picture, the decoding and everything listed above are yours to write.
PoseTrackerNet in the docsFiles on Hugging Face (access on request)
Format and sizes
PoseTrackerNet is a .tflite file. It runs on the CPU with LiteRT (TensorFlow Lite) on Android and iOS, and with LiteRT.js in the browser.
| Size | Identifier | File, int8 | Use |
|---|---|---|---|
| PoseTrackerNet Lite | lite |
1.4 MB | the default |
| PoseTrackerNet Ultra | ultra |
2.0 MB | larger network, a little more accurate, about 1.3 × the time |
Each size exists in int8 (8-bit arithmetic inside, the default on a phone CPU) and in float32. All files have the same input and outputs, in float32: no quantized input is needed.
Input
| Shape | 1 × 192 × 192 × 3, float32 |
| Channels | R, G, B |
| Values | −1 to 1: value / 127.5 − 1 |
| Picture | upright, not mirrored (mirror the display, not the model’s input), one person |
| Framing | the whole picture padded with black to a centred square, or better a square around the person |
Outputs
Two float32 tensors. Tell them apart by their number of channels, not by a name or an index.
| Output | Shape | Content |
|---|---|---|
| Score map | 1 × 24 × 24 × 39 |
per keypoint, a 24 × 24 grid over the input; each value (0 to 1) is the score that the keypoint is in that cell |
| Offset map | 1 × 24 × 24 × 78 |
per cell and keypoint k: channel 2k = vertical offset, 2k + 1 = horizontal offset, both 0 to 1 |
Decoding
For each keypoint k:
- Find the cell
(row, col)with the highest value in channelkof the score map. That value is the keypoint’s score. - Take that cell and its eight neighbours (those inside the grid). Each cell
(r, c)gives its own answer for the keypoint’s place, in cells:x = c + (dx − 0.5) × 6,y = r + (dy − 0.5) × 6, withdy,dxread at that cell. - Average the answers, each weighted by the cell’s score for
k. - Multiply by the cell size (side of the square the model saw ÷ 24) and add the square’s top-left corner: you get pixels of your picture.
Show a keypoint when its score is above a threshold: 0.7 is recommended, and a keypoint already shown is kept down to 0.5 so that it does not blink. Step 2 matters with the int8 files: reading the best cell alone makes the keypoints tremble.
The 39 keypoints
Index and name, in output order. left_ and right_ are the person’s left and right.
0 nose |
10 left_hip |
20 lower_neck_back |
30 trunk_b5 |
1 lower_neck_front |
11 right_hip |
21 trunk_f1 |
31 left_deltoid |
2 left_eye |
12 left_knee |
22 trunk_f2 |
32 right_deltoid |
3 right_eye |
13 right_knee |
23 trunk_f3 |
33 left_trapezius |
4 left_ear |
14 left_ankle |
24 trunk_f4 |
34 right_trapezius |
5 right_ear |
15 right_ankle |
25 trunk_f5 |
35 upper_neck_front |
6 left_shoulder |
16 left_toe_inner |
26 trunk_b1 |
36 upper_neck_back |
7 right_shoulder |
17 right_toe_inner |
27 trunk_b2 |
37 left_wrist |
8 left_elbow |
18 left_heel |
28 trunk_b3 |
38 right_wrist |
9 right_elbow |
19 right_heel |
29 trunk_b4 |
trunk_f1 to f5 run down the front of the trunk, trunk_b1 to b5 down the back. <side>_trapezius is the shoulder-line point towards the neck, <side>_deltoid the one towards the arm. <side>_toe_inner is the big toe.
Coming from a 17-point model: the 17 COCO points are indices 0, 2–15, 37 and 38 under their usual names. Look them up by name rather than by index.
Limits
- One person. With several people in the picture, one is followed.
- 2D keypoints.
- No hand or finger points: the arm stops at the wrist.
- Made for upright people seen by a phone or laptop camera; upside-down bodies are placed less well.
- Not a medical device.