Pose Estimation STM32 models

The STM32 model zoo includes several pose estimation models pre-trained on custom and public datasets.

You can get the footprints and performance information of each model family in the ST Edge AI Model Explorer. The model families are:

  • MoveNet

  • Hand landmarks

  • Head landmarks

  • YOLOv8n pose

  • YOLOv11n pose

Select a model in the YAML file

The model section of your YAML file defines the model. model_type is mandatory and must correspond to your model: it selects the output format and the post-processing (see the supported model types and the services each one supports). Then choose one of the two ways to provide the model; they cannot be combined:

  • model_path: the path of your own model file. Use it for any model of the zoo that you downloaded.

  • model_name: the name of a model registered in the services. The pretrained file is then selected from the other attributes of the configuration, as described below.

For a pretrained model selected by name, the service looks in the model zoo for the file registered for the combination of:

Attribute

Meaning

model_name

Name of the model, see the table below.

pretrained_dataset_name

Dataset of the weights. By default, dataset_name and dataset_subsetname of the dataset section joined by _, for example custom_coco and person_17kpts give custom_coco_person_17kpts. Set model.pretrained_dataset_name when there is no dataset section, for example for benchmarking and deployment.

input_shape

Input shape of the file.

model_precision

float32, w8a8_ptq (8-bit weights and activations), or w8a8_ptq_pertensor (per-tensor quantization, when available). It is float32 for training and quantization, and w8a8_ptq by default for the other operation modes.

If the combination is not registered, the run stops with the message “No registered pretrained model found for the requested configuration”.

Registered models

model_name

model_type

Keypoints

class_names

pretrained_dataset_name

input_shape and model_precision

st_movenet_lightning_a100_heatmaps

heatmaps_spe

17

[person]

coco_person_17kpts, custom_coco_person_17kpts

(192, 192, 3), (224, 224, 3), (256, 256, 3): float32, w8a8_ptq, w8a8_ptq_pertensor

movenet_singlepose_lightning_a100

spe

17

[person]

custom_dataset_person_17kpts

(192, 192, 3): w8a8_ptq

movenet_singlepose_thunder_a100

spe

17

[person]

custom_dataset_person_17kpts

(256, 256, 3): w8a8_ptq

handlandmarks_full

hand_spe

21

[hand]

custom_dataset_hands_21kpts

(224, 224, 3): w8a8_ptq

facelandmarksv1

head_spe

468

[head]

custom_dataset_head_468kpts

(3, 192, 192): w8a8_ptq (ONNX)

yolov8n_pose

yolo_mpe

17

[person]

coco_person_17kpts

(192, 192, 3), (256, 256, 3), (320, 320, 3): w8a8_ptq

yolov11n_pose

yolo_mpe

17

[person]

coco_person_17kpts

(256, 256, 3), (320, 320, 3): w8a8_ptq

yolo26n_pose

yolo_mpe

17

[person]

coco_person_17kpts

(3, 256, 256): w8a8_ptq (ONNX)

The pretrained models are provided as .keras ( float32), .tflite, or .onnx files, so the file format follows the model. Only the st_movenet_lightning_a100_heatmaps models are also available in float: they can be evaluated, quantized, and fine-tuned. The other models are already quantized: use them for evaluation, prediction, benchmarking, and deployment.

Examples of configurations that select a pretrained model by name are evaluation_config.yaml, evaluation_mpe_config.yaml, and prediction_config.yaml.

Models that can be built for training

Training is only available for heatmaps_spe models. The following model_name values build a model for training (see the Training guide):

  • st_movenet_lightning_a100_heatmaps: MoveNet Lightning-like model with a MobileNetV2 backbone (width multiplier 1.0), and an upsampling head that outputs one heatmap per keypoint.

  • custom_models: a small convolutional network that outputs one heatmap per keypoint, for experiments.

To train your own architecture, provide it with model_path, as explained in the Training guide.