Semantic Segmentation STM32 Model Zoo

January 22, 2026 · View on GitHub

Directory Structure & Main Components

  • datasets/ — Contains supported datasets and step-by-step tutorials for creating, preparing, and customizing datasets for semantic segmentation:
    • pascal_voc_2012/, coco_2017_pascal_voc_2012/, n_class_coco_2017_pascal_voc_2012/
    • Guidance and scripts for dataset preparation
    • Tutorials for dataset creation and augmentation
  • tf — Main Python package for all services (training, quantization, evaluation, prediction, benchmarking, deployment, etc.)
  • config_file_examples — Ready-to-use YAML config files for all services and chains (training, quantization, evaluation, prediction, benchmarking, deployment).
  • outputs — Stores experiment results, logs, and model artifacts (organized by date).
  • docs — All documentation and tutorials:
    • Service-specific READMEs (training, quantization, evaluation, prediction, benchmarking, deployment, augmentation, datasets, models, overview, etc.)
    • Tutorials in docs/tuto/
    • Images in docs/img/
  • stm32ai_main.py — Main entry point for running services and chains.
  • user_config.yaml — User-editable config file for custom runs.

Quick Start & Examples

To get started, set the operation_mode in your config YAML to select a service or chain. See the following documentation for details and examples:

All configuration examples are in config_file_examples/.

The different values of the operation_mode attribute and the corresponding operations are described in the table below. In the names of the chain modes, 't' stands for training, 'e' for evaluation, 'q' for quantization, 'b' for benchmark and 'd' for deployment on an STM32 board.

operation_mode attributeOperations
trainingTrain a model from the variety of segmentation models in the model zoo (BYOD) or your own model (BYOM)
evaluationEvaluate the accuracy of a float or quantized model on a test or validation dataset
quantizationQuantize a float model
predictionPredict the classes some images belong to using a float or quantized model
benchmarkingBenchmark a float or quantized model on an STM32 board
deploymentDeploy a model on an STM32 board
chain_tqebSequentially: training, quantization of trained model, evaluation of quantized model, benchmarking of quantized model
chain_tqeSequentially: training, quantization of trained model, evaluation of quantized model
chain_eqeSequentially: evaluation of a float model, quantization, evaluation of the quantized model
chain_qbSequentially: quantization of a float model, benchmarking of quantized model
chain_eqebSequentially: evaluation of a float model, quantization, evaluation of quantized model, benchmarking of quantized model
chain_qdSequentially: quantization of a float model, deployment of quantized model

You don't know where to start? You feel lost?

Don't forget to follow our tuto below for a quick ramp up :

Minimalistic YAML templates are available in config_file_examples/. All pre-trained models in the STM32 model zoo are provided with their configuration YAML files.

For more details, see the README_OVERVIEW.md.