使用CMSIS-NN-[ERROR][Errno 8]Exec格式错误在Arm Cortex-M上进行图像识别

使用CMSIS-NN-[ERROR][Errno 8]Exec格式错误在Arm Cortex-M上进行图像识别,arm,google-colaboratory,cortex-m,mbed,Arm,Google Colaboratory,Cortex M,Mbed,我正在尝试使用CMSIS-NN实现教程[手臂皮质-m上的图像识别,结果出现以下错误: !mbed compile -m DISCO_F746NG -t GCC_ARM --source . --source ../ML-examples/cmsisnn-cifar10/camera_demo/camera_app/ Using targets from /content/CMSISNN_Webinar/cmsisnn_demo/mbed/e95d10626187/targets.json [O

我正在尝试使用CMSIS-NN实现教程[手臂皮质-m上的图像识别,结果出现以下错误:

!mbed compile -m DISCO_F746NG -t GCC_ARM --source . --source ../ML-examples/cmsisnn-cifar10/camera_demo/camera_app/
 Using targets from /content/CMSISNN_Webinar/cmsisnn_demo/mbed/e95d10626187/targets.json
[OS ERROR] Command: /content/GCC-ARM/gcc-arm-none-eabi-9-2019-q4-major/bin/arm-none-eabi-gcc --version
 [ERROR] [Errno 8] Exec format error
 [mbed] ERROR: "/usr/bin/python2" returned error.
       Code: 1
       Path: "/content/CMSISNN_Webinar/cmsisnn_demo"
       Command: "/usr/bin/python2 -u /content/CMSISNN_Webinar/cmsisnn_demo/.temp/tools/make.py -t 
 GCC_ARM -m DISCO_F746NG --source . --source ../ML-examples/cmsisnn-cifar10/camera_demo/camera_app/ --build ./BUILD/DISCO_F746NG/GCC_ARM"

   Tip: You could retry the last command with "-v" flag for verbose output
我搜索了其他类似的问题,但没有找到任何解决方法

我正试图在谷歌Colab上运行它,项目已附加

我希望这个脚本能帮助像我这样的新手

提前谢谢


我遇到了完全相同的问题,没有运行它。但我使用TensorFlow Lite为迪斯科舞厅F746NG运行了一个非常类似的教程。我只能建议您切换到TensorFlow Lite。以下是对我有用的教程: 与您尝试的项目非常相似的示例项目如下: 但是我会先做hello world的例子,因为这是更好的解释

我还可以推荐一本关于这个主题的好书。你可以在这里阅读预览: 本书将对上面的例子进行解释,但要详细得多

在这些示例中,main.cc中存在一些错误/过时的函数调用:您必须将
ms\u wait(100)
更改为
HAL\u Delay(100)
resolver
更改为
micro\u ops\u resolver
或类似的内容。更改后,它对我起到了作用

我知道,这不完全是对你问题的回答,但我希望它能帮助你