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_qb operation mode is not supported. Benchmark a model that is already quantized, such as the pretrained w8a8_ptq models of the zoo.

  • Select the model either with model_path, or with model_name, input_shape, pretrained_dataset_name, and model_precision. The two ways cannot be combined. The example uses the second one, for the pretrained yolov8n model:

    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_name and input_shape must 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: set tools.stedgeai.on_cloud: True.

  • No dataset or preprocessing section is needed for benchmarking.