cancel
Showing results for 
Search instead for 
Did you mean: 

Deploying the image classification model on the STM32N6570-DK got stuck, seeking help.

LQC_
Associate III

Hello everyone,

I followed the tutorial below to deploy, and an error occurred when executing python stm32ai_main.py at the end. The window log is as follows. Can anyone help me figure out what happened?

https://github.com/STMicroelectronics/stm32ai-modelzoo-services/blob/main/image_classification/deployment/README_STM32N6.md

 

LOAD ERROR: WindowsPath('E:/07_Stm32/stm32N657/stm32ai-modelzoo-main/stm32ai-modelzoo-services-main/stm32ai-modelzoo-services/image_classification/src/deployment_outputs/2025_05_16_13_00_27/network.h') and WindowsPath('E:/07_Stm32/stm32N657/stm32ai-modelzoo-main/stm32ai-modelzoo-services-main/stm32ai-modelzoo-services/image_classification/src/deployment_outputs/2025_05_16_13_00_27/network.h') are the same file
Error executing job with overrides: []
Traceback (most recent call last):
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\stm32ai_main.py", line 421, in <module>
main()
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\main.py", line 94, in decorated_main
_run_hydra(
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\_internal\utils.py", line 394, in _run_hydra
_run_app(
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\_internal\utils.py", line 457, in _run_app
run_and_report(
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\_internal\utils.py", line 223, in run_and_report
raise ex
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\_internal\utils.py", line 220, in run_and_report
return func()
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\_internal\utils.py", line 458, in <lambda>
lambda: hydra.run(
File "D:\26_anaconda3\envs\n61\lib\site-packages\clearml\binding\hydra_bind.py", line 91, in _patched_hydra_run
return PatchHydra._original_hydra_run(self, config_name, task_function, overrides, *args, **kwargs)
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\_internal\hydra.py", line 132, in run
_ = ret.return_value
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\core\utils.py", line 260, in return_value
raise self._return_value
File "D:\26_anaconda3\envs\n61\lib\site-packages\hydra\core\utils.py", line 186, in run_job
ret.return_value = task_function(task_cfg)
File "D:\26_anaconda3\envs\n61\lib\site-packages\clearml\binding\hydra_bind.py", line 230, in _patched_task_function
return task_function(a_config, *a_args, **a_kwargs)
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\stm32ai_main.py", line 407, in main
process_mode(mode=mode, configs=cfg, train_ds=train_ds, valid_ds=valid_ds, quantization_ds=quantization_ds,
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\stm32ai_main.py", line 302, in process_mode
deploy(cfg=configs)
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\../deployment\deploy.py", line 90, in deploy
stm32ai_deploy_stm32n6(target=board, stlink_serial_number=stlink_serial_number, stm32ai_version=stm32ai_version, c_project_path=c_project_path,
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\../../common/deployment\common_deploy.py", line 469, in stm32ai_deploy_stm32n6
stmaic_local_call(session)
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\../../common/deployment\common_deploy.py", line 443, in stmaic_local_call
stmaic.compile(session=session, options=opt, target=session._board_config)
File "E:\07_Stm32\stm32N657\stm32ai-modelzoo-main\stm32ai-modelzoo-services-main\stm32ai-modelzoo-services\image_classification\src\../../common\stm32ai_local\compile.py", line 208, in cmd_compile
raise Exception('Error during compilation')
Exception: Error during compilation

2 REPLIES 2
GRATT.2
ST Employee

Hello, 

A new release is on its way and will be published next week. Thus, we won't address these bugs. 

Guillaume

GHORT.1
ST Employee

The new version of the model zoo is available:

STMicroelectronics/stm32ai-modelzoo-services at v3.1.0

We released the STM32N6 code in it. You don't have to retrieve the source code in ST.com anymore.
It is compatible with STEdgeAI 2.1 for the deployment.