Instance Segmentation Models

Use the ST Edge AI Model Explorer to browse STM32 AI models and find candidates for your application and target. Before choosing a model, check that it is supported by your target and validate its accuracy, latency, and memory use in your deployment setup.

The service provides pretrained, quantized instance segmentation models trained on the COCO dataset. Instance Segmentation is TensorFlow only and has no training or quantization service: the models are used as quantized TFLite files for prediction, benchmarking, and deployment.

The available model families are:

  • yolov8n_seg: YOLOv8n-seg from Ultralytics, with an instance segmentation head.

  • yolov11n_seg: YOLO11n-seg from Ultralytics.

Pretrained models

The services load the following models by name. All are quantized with the w8a8_ptq precision and trained on the COCO dataset ( coco_is):

model_name

input_shape

yolov8n

(256, 256, 3)

yolov8n

(320, 320, 3)

yolov11n

(256, 256, 3)

To use one of them, set model_name, input_shape, and model_precision. The pretrained_dataset_name is coco_is: it is taken from dataset.dataset_name unless you set it in the model section.

model:
  model_type: yolov8n_seg
  model_name: yolov8n
  input_shape: (256, 256, 3)
  model_precision: w8a8_ptq

Use your own model

Set model_path to a local quantized .tflite file or to an http(s) URL, instead of model_name. model_name and model_path cannot be used together. The input shape is read from the model file.

model:
  model_type: yolov8n_seg
  model_path: <path-to-a-quantized-tflite-model>

Model type

model_type identifies the architecture of the model:

  • yolov8n_seg: the value used by the examples and the only value supported by the deployment service, which selects the YOLOv8 segmentation postprocessing of the embedded application.

The prediction and benchmarking services do not use model_type. The configuration of the pretrained YOLO11n model in the zoo sets model_type: yolov11n_seg, which the deployment service does not support.

Model requirements

The prediction service expects a quantized TFLite model with two outputs: the detections (box, class scores, and mask coefficients, with 32 mask coefficients) and the mask prototypes. Check that the model is supported by your target before you benchmark or deploy it.