Hello @croto,
What is done by the stm32ai_main.py is described in the yaml. In other words, you do not need to touch the Python file ever, just edit the user_config.yaml and execute the Python do to what is described in the yaml.
Based on your CMD screenshot, your yaml is using an operation mode that at least contains quantization and benchmarking.
By default the config file for image classification is here: https://github.com/STMicroelectronics/stm32ai-modelzoo/blob/main/image_classification/src/user_config.yaml
When you open it, you see multiple parts:
general describes your project, including project name, directory where to save models, etc.
operation_mode describes the service or chained services to be used
dataset describes the dataset that you are using, including directory paths, class names, etc.
preprocessing specifies the methods that you want to use for rescaling and resizing the images.
training specifies your training setup, including batch size, number of epochs, optimizer, callbacks, etc.
mlflow specifies the folder to save MLFlow logs.
hydra specifies the folder to save Hydra logs.
By default, the cloud is indeed on the cloud (on_cloud: True)
tools:
stedgeai:
version: 9.1.0
optimization: balanced
on_cloud: True
path_to_stedgeai: C:/Users/<XXXXX>/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-AI/<*.*.*>/Utilities/windows/stedgeai.exe
path_to_cubeIDE: C:/ST/STM32CubeIDE_<*.*.*>/STM32CubeIDE/stm32cubeide.exe
If you want to do it in local, you have to edit the two paths and change True to False.
As for the deployment, if the operation mode contains the deployment (so deployment or chain_qd, see the tab in my first post), if your board is plugged, a basic application and your model will be deployed on your board.
I am not familiar with it, but you can look for the code here: https://github.com/STMicroelectronics/stm32ai-modelzoo/tree/main/stm32ai_application_code/image_classification
Have a good day,
Julian