Instance Segmentation model benchmarking ¶
Instance Segmentation model benchmarking supports Keras, TFLite, and ONNX models; the pretrained models of the zoo are quantized TFLite models. The shared guide explains the workflow, tool selection, configuration, run commands, and results: STM32 model benchmarking.
A ready-to-use YAML example is available in the Instance Segmentation configuration folder:
Update the configuration for your model and target, then follow the common guide to run benchmarking.
Instance Segmentation specifics ¶
Quantization is not available for Instance Segmentation, so the
chain_qboperation mode is not supported. Benchmark a model that is already quantized, such as the pretrainedw8a8_ptqmodels of the zoo.Select the model either with
model_path, or withmodel_name,input_shape,pretrained_dataset_name, andmodel_precision. The two ways cannot be combined. The example uses the second one, for the pretrainedyolov8nmodel:model: model_type: yolov8n_seg model_name: yolov8n input_shape: (256, 256, 3) pretrained_dataset_name: coco_is model_precision: w8a8_ptq
With
model_name,pretrained_dataset_nameandinput_shapemust match one of the pretrained models.The example benchmarks on
STM32MP257F-EV1. For an STM32MPU target, benchmarking runs on the ST Edge AI Model Bench only: settools.stedgeai.on_cloud: True.No
datasetorpreprocessingsection is needed for benchmarking.