2024-07-25 12:30 PM
hello,
I followed this tutorial 'How to use transfer learning to perform image classification on STM32.' During the project deployment step, when I build, I encounter these errors (Description Resource Path Location Type 'ai_layer_conv2d' {aka 'struct ai_layer_conv2d_'} has no member named 'in_ch_format' network.c /STM32H747I_DISCO_PersonDetect_Google_CM7/Application line 4063 C/C++ Problem)in the file network.c. Can you help me resolve them )in the file network.c. Can you help me resolve them
2024-07-26 02:37 AM
you probably used a STM32CubeAI version more recent than the one used in the example.
Please make sure that all include files in the project are up to date (i.e. replace all the files in Middlewares/ST/AI/Inc by the ones deliverd in the version of STM32CubeAI you use).
If you are using STM32CubeMX those files are generally located under ~/STM32Cube/Repository/Packs/STMicroelectronics/X-CUBE-AI/9.0.0/Middlewares/ST/AI/Inc
You can replace 9.0.0 by the version you use
Regards