-
Hi @user130273, would you be willing to share your code? I've been able to collect data and train a model using Edge Impulse (if interested, see this tutorial I wrote). This is however using the Bangle gesture commands, but now I'd like to learn how to use raw accelerometer and other data.
Especially this part is unclear: when I've uploaded a trained model (.tfmodel + .tfnames) to the watch, how can I run inference code on it?Edit: Aargh, it should be something in line with the below code that I've seen many times... Still interested to see your code though.
var model=atob("......"); var tf = require("tensorflow").create(2048, model); tf.getInput()[0] = x; tf.invoke(); print(tf.getOutput()[0]);
The inputs (and outputs) of the Tensorflow implementation on Espruino are just flat arrays... So you want the result of
print(input);
to look like:then it should work