I managed to create HAR model using Keras (adapted from this repo ), for recognizing activity based on accelerometer data. The accuracy is not bad, and also able to convert to .kmodel.
Since I’m going to do inference using MaixPy, and for now MaixPy only supports image data as input, I need to convert the accelerometer data from float to uint8.
The demo code is here:
The kmodel file is here.
Now, my issue is that the inference output seems not changed (only a bit) regardless the input data. I’m not sure there’s problem with the code, or the model. But I can confirm that the model works properly if using regular Python.
Please kindly advice. Thanks.