Tensorflow speech sample on Microbit V2 #7670
Replies: 1 comment
-
Posted at 2020-11-29 by Abhigkar New Updates: I am so excited to have MbitV2 in my hand so could not resist to try and run existing tensorflow micro_speech model on microbit. I started to look an existing Espruino approach from this post to generate espruino compatible tflite model. I encountered so many issues while convert existing model(hello world/sin wave), creating new model(speach), and even building espruino for mBitV2. 1 - Convert existing hello_world model This code is no longer working with the new notebook.
but this works
After fixing the base64 stuff, i tried to run the same example in emulator but it neither gives any error nor expected outcome. Original example vs Updated example
I am getting upload error when trying to upload this code direct to RAM. Is this related to Low RAM or Flash??? How can I fix this?
Microbit is flashed this hex
3- Build error. To get more space on Microbit I tried to remove 'NEOPIXEL' module from the board file and build But I got errors right after elf file is created here is the truncated log
Posted at 2020-11-30 by @gfwilliams Hi, Thanks for the info about the link... Just fixed. Sorry to break this to you but Tensorflow speech was the first thing I tried. The micro:bit isn't fast enough to work with their example code - the code would need re-writing to do less processing. What is the error from: This seems like valid Python to me, so I'd surprised it would suddenly start failing? Not sure what's going on with the upload - is it possible you had other code running in the background on the micro:bit? But either way that code looks like it wouldn't work - it records 6000 samples of wave data, and I'm not sure you're going to be able to feed 6000 samples into Tensorflow without running out of RAM. Re, the build : You're building without The Posted at 2020-12-01 by Abhigkar Thank @gfwilliams for your response. It is very unfortunate that mBit v2 still not so powerful to run Esprunio and TF both. I am sure there must me some performances optimisation there to fit in. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-11-28 by Abhigkar
I recently got my Microbit V2 that is very much supported by Espruino. I noticed that Tensor Flow is already activated in microbit v2 board file. Thai means it supports TF by default.
Since mBit v2 has inbuild microphone I wonder how easy or complex is to implement/run well known TF-Lite Yes-No demo or Edge Impulse Voice Activated Microbit demo.
Edge impulse internally using tensor flow lib which looks same as in Espruino TF
PS: You can also export the trained models to compatible Arduino or C++ library.
By the way this link is broken here Espruino GitHub and the this is the correct URL
Beta Was this translation helpful? Give feedback.
All reactions