I’ve been trying for quite some time to run machine learning models capable of detecting bird songs in the arduino nicla vision board as part of my masters degree.
However, I’ve been faced with many challenges. One of them uploading an already trained model. After following the library and training my model in the repository, I seem to be running into countless dead-ends on the subject of uploading and running the model.
I know that I need to upload it to firmware since the memory isn’t enough and that the process was once explained by a guide in the link “tflite-micro/tensorflow/lite/micro/examples/micro_speech/train at main · tensorflow/tflite-micro · GitHub” which unfortunately is not available any more, I can’t find anything regarding it. Could anyone help me with this? Did the link change?
Thank you for your patience in advance,
I feel like it’s not going to be the last time I write here.
The guide you referenced is just a MicroSpeech training guide from Tensorflow, which is unrelated to this topic. To embed models into a firmware image, add them here and rebuild the firmware (or just replace micro_speech.[tflite/text]):
To use MicroSpeech models, we have a built-in app that implements the algorithm (starting audio, building & updating the spectrogram, running inference etc..) here:
This lets you pass the name of the preprocessor and microspeech models as arg if they’re different than the defaults. Note if the same hyperparemeters (slice size, window size etc) were used, this will just work right out of the box, if not, it will be hard to adapt but not impossible. Here’s an example using the default:
Thank you for your previous response. While I appreciate the guidance on MicroSpeech, my core issue remains unresolved: I’m unable to rebuild the firmware for the Nicla Vision to embed custom ML models.
My current problem is that when following the official build instructions (Docker or Linux), the process fails with:
“make: *** No rule to make target ‘.WAIT’, needed by ‘openmv’. Stop.”
Would you happen to know any of these questions?
Is .WAIT a known issue with Nicla Vision builds? If so, is there a patch or workaround?
Are there additional dependencies not documented in the guide?
I’m happy to provide logs or test patches. This is a blocker for my thesis, and I’d love to help improve the docs if we solve it.