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 |
|---|---|
|
|
Name of the model, see the table below. |
|
|
Dataset of the weights. By default,
|
|
|
Input shape of the file. |
|
|
|
If the combination is not registered, the run stops with the message “No registered pretrained model found for the requested configuration”.
Registered models ¶
|
|
|
Keypoints |
|
|
|
|---|---|---|---|---|---|
|
|
|
17 |
|
|
|
|
|
|
17 |
|
|
|
|
|
|
17 |
|
|
|
|
|
|
21 |
|
|
|
|
|
|
468 |
|
|
|
|
|
|
17 |
|
|
|
|
|
|
17 |
|
|
|
|
|
|
17 |
|
|
|
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.