Skip to main content
Associate II
July 25, 2024
Question

Error in file network .c from "How to use transfer learning to perform image classification on STM32"

  • July 25, 2024
  • 1 reply
  • 657 views

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 2c48f387-ff12-47fe-9e35-db9e65ad47a5.jpeg)in the file network.c. Can you help me resolve them

1 reply

fauvarque.daniel
ST Employee
July 26, 2024

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