Object Detection deployment

Object Detection deployment is supported on STM32N6, STM32H7, and STM32MPU platforms. Hardware requirements, supported model formats, tools, and deployment steps vary by target. Follow the guide for your platform for the applicable setup instructions and configuration:

Object Detection specifics

  • model.model_type is required, also when you use model_path. It selects the post-processing adapted to the model architecture.

  • The postprocessing section is required and sets confidence_thresh, NMS_thresh, IoU_eval_thresh, and max_detection_boxes. Higher max_detection_boxes values use more memory on target; models are validated with 10. yolo_anchors is only needed for YOLOv2-type models.

  • preprocessing.resizing.aspect_ratio support depends on the target:

    Value

    Supported targets

    fit

    All

    crop

    STM32H7, STM32N6

    padding

    STM32H7

    full_screen

    STM32N6

  • On STM32MPU, only bilinear interpolation, the fit aspect ratio, and the rgb color mode are supported.

Configuration examples

Ready-to-use YAML examples are available in the Object Detection configuration folder: