Unable to read output from ML model running on RPi Pico W

February 4, 2024, 10:02

risb

I've been trying to use the tensorflow lite micro port for the Raspberry Pi Pico W, to run an ANN that will detect shape of motion of an accelerometer, using the pico-sdk. I've followed guides and examples on how to setup the TFLMicro model and running it, but when I need to get the model output, it is gibberish and never changes. I've gone into more detail in the issue I opened on the pico-tflmicro repository, which also links to my repository of code I've written till now. https://github.com/raspberrypi/pico-tflmicro/issues/13 although this is not a generic Pi Pico W specific issue, it can't hurt to ask here. the pico-specific funtionality is that there is code to interface with the MPU6050 to gather accelerometer data, using the onboard LED using the cyw43 module and interrupt handling on 2 buttons to 1. Record accelerometer data 2. Send recorded data through the model and obtain a classification

risb

Ok so I managed to solve this by using an int8 quantized tflite model