I was trying to run a quantized model converted to CMSIS implementation with GNU/GCC on Visual Studio Code. How do I check the results/accuracy on an inputs.h file which contains the testing data/images without connecting any board.Would really appreciate if someone could help me out here...
Thanks...
Hey there,
Good question without an obvious answer. The one option that makes the most sense would be to use GNU Arm to (cross) compile the application, bake in inputs.h, run the inference via CMSIS-NN code and dump the output. You can build for and use Corstone-300 FVP, just to test the accuracy.
https://developer.arm.com/ip-products/subsystem/corstone/corstone-300
Just google it, there's a few ways to use it. I don't know of one that uses Visual Studio, but there is one using GitPods, so theoretically could work.
https://githubmemory.com/@jasonrandrews
Other options:
You could check out Renode, which is good in general for simulating hardware:
https://renode.io/
https://www.zephyrproject.org/developing-zephyr-rtos-embedded-applications-on-platformio-and-simulating-on-antmicro-renode/
Do you have a target board in mind?
Also, we typically recommend not using CMSIS directly anymore and running TFLite Micro, but if you've already got all the hard work done in C, you could still use that flow to test your model.
https://www.tensorflow.org/lite/microcontrollers
https://www.tensorflow.org/lite/microcontrollers/build_convert#model_conversion