本帖最后由 地瓜patch 于 2025-5-29 11:46 编辑
执行python stm32ai_main.py --config-path ./config_file_examples/ --config-name deployment_n6_ssd_mobilenet_v2_fpnlite_config.yaml命令后出现相同路径调用同一个network.h文件的问题。如下:
LOAD ERROR: WindowsPath('G:/STCL562F429N6570/STM32N6570DK/stm32ai-modelzoo-services-main/object_detection/src/experiments_outputs/2025_05_15_22_09_56/network.h') and WindowsPath('G:/STCL562F429N6570/STM32N6570DK/stm32ai-modelzoo-services-main/object_detection/src/experiments_outputs/2025_05_15_22_09_56/network.h') are the same file Error executing job with overrides: [] Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python38\lib\site-packages\clearml\binding\hydra_bind.py", line 230, in _patched_task_function return task_function(a_config, *a_args, **a_kwargs) File "stm32ai_main.py", line 228, in main process_mode(cfg) File "stm32ai_main.py", line 102, in process_mode deploy(cfg) File "../deployment\deploy.py", line 111, in deploy stm32ai_deploy_stm32n6(target=board, stlink_serial_number=stlink_serial_number, stm32ai_version=stm32ai_version, c_project_path=c_project_path, File "../../common/deployment\common_deploy.py", line 469, in stm32ai_deploy_stm32n6 stmaic_local_call(session) File "../../common/deployment\common_deploy.py", line 443, in stmaic_local_call stmaic.compile(session=session, options=opt, target=session._board_config) File "../../common\stm32ai_local\compile.py", line 208, in cmd_compile raise Exception('Error during compilation') Exception: Error during compilation Set the environment variable HYDRA_FULL_ERROR=1 for a complete stack trace.
1—用以下指令查看所有包含network.h的.c文件,并查看这些.c文件并确认没有重复调用network.h文件。
findstr /s /m /c:"#include \"network.h\"" *.c
2--用以下指令重建new_workspace文件目录mkdir "G:\STCL562F429N6570\STM32N6570DK\stm32ai-modelzoo-services\object_detection\src\experiments_outputs\new_output"mkdir "G:\STCL562F429N6570\STM32N6570DK\stm32ai-modelzoo-services\object_detection\src\experiments_outputs\new_workspace"
重建目录后执行以下指令,将输出文件指向2025_05_27_20_25_22和workspace_temp,输出文件正常,当仍然提示network.h are the same file Error E:\ProgramFiles\STEdgeAI\2.1\Utilities\windows\stedgeai.exe generate ^--target stm32n6 ^-m ../../../stm32ai-modelzoo/object_detection/ssd_mobilenet_v2_fpnlite/ST_pretrainedmodel_public_dataset/coco_2017_person/ssd_mobilenet_v2_fpnlite_035_192/ssd_mobilenet_v2_fpnlite_035_192_int8.tflite ^--output "G:\STCL562F429N6570\STM32N6570DK\stm32ai-modelzoo-services\object_detection\src\experiments_outputs\2025_05_27_20_25_22" ^--workspace "G:\STCL562F429N6570\STM32N6570DK\stm32ai-modelzoo-services\object_detection\src\experiments_outputs\workspace_temp" ^--st-neural-art default@../../application_code/object_detection/STM32N6/Model/user_neuralart.json ^--input-data-type uint8 ^--inputs-ch-position chlast
|