alessandrocapotondi / mobilenet_v1_stmcube_ai

Mobilenet v1 (3,128,128, alpha=0.25) on STMH7 using STMCube AI
Apache License 2.0
10 stars 2 forks source link
cortex-m7 cubemxai deep-neural-networks edge-computing imagenet keras mobilenet neural-network stm32 stm32h7 stm32h743zi stmcubemx

Mobilenet on STMH7 using STMCubeMX.AI

(new version is located here: https://github.com/alessandrocapotondi/MobileNet_v1_x_cube_ai_4.1.0)

The repo contains a STMWorkbench project that aims to fit a Mobilenet v1 (3,128,128, alpha=0.25) into a MCU STM32H7 using the STMCubeMX.AI flow. Note that the selected Mobilenet version is the biggest model that can be fitted on the MCU STM32H7 using the STMCubeMX.AI flow.

This project will be used as reference benchmark of our Quantized Mobilenet based onCMSIS-NN: https://github.com/EEESlab/mobilenet_v1_stm32_cmsis_nn

Current Status

Mobilenet v1 (3,128,128, alpha=0.25) compiles and works on STMicroelectronics STM32 Nucleo-144.

Content

The project folder structure follows the classic STMWorkbench project template. In addition it contains the code generated by STMCubeMX.AI for the Mobilenet included inside the folder keras_model/:

Measured Performances

Million MACs Million Parameters Top-1 Accuracy Top-5 Accuracy CPU Cycles (MCycles) Latency @400MHz (s) MMACs/s MMACs/s/W*
14 0.47 41.5 66.3 99 0.247 56.7 84.6

Execution Screenshot