STM32AI Python Interface is a Python implementation of the REST APIs dedicated to STM32Cube.AI Developer Cloud.
With this package, you will be able to:
- Log in to STM32Cube.AI Developer Cloud using your MyST Account
- Upload your own Keras, TFLite and ONNX Model
- Analyze your model with our tool in order to know memory footprint, model complexity and more
- Benchmark your model directly in real STM32 targets to get real performance (inference time, memory footprint...)
- Generate C Code from your model
You will need to have a MyST account in order to use this service. If not, please register in st.com website.
- Python >= 3.7
Install Python package required
pip install -r requirements.txt
Export your MyST username and passwords
export STM32AI_USERNAME="dupont@example.com" # Address mail used for your MyST Account
export STM32AI_PASSWORD="password" # Your password
Arguments supported for CLI calls are available in ./stm32ai_dc/types.py
You might have issues if you are working behind a corporate proxy. To fix your issues, please try the following:
export http_proxy="http://username:password@proxy_addr:proxy_port"
export https_proxy="http://username:password@proxy_addr:proxy_port"
These issues might be due to proxy configuration which requires to set a certificate. In order to skip this error, you can try the following:
export NO_SSL_VERIFY="1"
Examples are available in ./stm32ai_dc_examples/
folder