Gesture Recognition ? #6513
Replies: 1 comment
-
Posted at 2023-11-29 by @gfwilliams Argh, sorry - that's a pain. So it looks like while neither the colab or Tensorflow on the Bangle has changed, something in the code the colab uses must have changed. I don't ever recall seeing SPACE_TO_BATCH_ND before so presumably this is a new op that got put into the exported file that we don't support yet. I'd be really interested to see if you have any luck with this tutorial: I feel like it's probably a good deal easier to use than the Colab - I should probably point to that as an example of use rather than nearform's old one Posted at 2023-12-01 by JumJum Looks to me like Tensorflow itself changed. Posted at 2023-12-01 by JumJum Checked the edge solution and failed. Posted at 2023-12-01 by JumJum played around looks like I had to
Anyway, copied this to .tfmodel and created .tfnames At the end, I got something running, but I'm not really satisfied, because
Posted at 2023-12-01 by @thyttan Is the problem that it takes a long time to use the 22kB file? Posted at 2023-12-02 by JumJum @thyttan Posted at 2023-12-04 by @gfwilliams It's hard to know what to suggest - I guess the size of the model maybe can be trimmed down by tweaking EdgeImpulse - I think under the hood it's running exactly the same tools as the original Colab file. Espruino will attempt to be smart with the tensorflow model - if you safe to the I'm afraid what with Espruino and Bangle.js, I don't really have time to keep up to date with all the latest happenings in Tensorflow though. I could attempt to pull in a new Tensorflow implementation at some point though. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2023-11-29 by JumJum
I tried to create my own gestures. Somehow I got this in github
https://github.com/nearform/nodeconfeu-gesture-models
There is a file create_gesture_model.ipynb which I got running on COLAB
First problem was circular loading around AccelerationReader
Got rid of that by changing directory to nodeconfeu-gesture-models before importing reader and go back
Next problem was in converting to tflite, functions SPACE_TO_BATCH_ND and BATCH_TO_SPACE_ND have been unknown.
Added these commands to builtin_operator_version_support in export_tflite.py
At least I got it working this way. Training etc ran fine.
Next created .tfnames and .tflite and added a handle for aiGesture
Now I get an error Didn't find op for builtin opcode 'SPACE_TO_BATCH_ND'
Is there any idea, what to do or how to do it better ?
Beta Was this translation helpful? Give feedback.
All reactions