-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Didn't find op for builtin opcode 'CONV_2D' version '3'. An older version of this builtin might be supported. Are you using an old TFLite binary with a newer model? #2645
Comments
I had exactly the same problems, and can now offer some help. Firstly, on the opcode front, you're using tensorflow 2.15 (I used 2.16 cos that's what I had locally). You need 1.x - and yeah, Colab says "colab doesn't like tensorflow 1, use tensorflow 2" really unhelpfully. However, this was someone else's experience: https://discuss.tinyml.seas.harvard.edu/t/micro-speech-example-from-tensorflow-on-an-esp32/376/7 As for the feature data size error, I also encountered this - this was so confusing! Is that memory getting stomped on or something? Never figured out if this was the case, but the example creates the feature_provider as a global pointer, and then makes a static instance of the object in setup() and redirects the global pointer to this. I made a global object instead of a global pointer and this avoided the problem. |
I was able to run the example by locally setting up Python 3.6 and Tensorflow version 1.15 to train the model. Could you share the code where you have modified the feature provider to make it an global object instead. Thanks in advance. Also for training the model in python instead of using the example |
i don't have the code on me now but it was just making the global pointer a global object and then creating it before setup(), like void setup() The only customisations I made to the model were changing the words detected, nothing actually structural, so can't help there sorry. Cheers for the version suggestions, going to try that. |
For posterity I used Tensorflow 1.15 and managed to retrain the model and get this working on my arduino as well, same setup as rishita-asl. Note that tensorflow 1.15 doesn't like any python above 3.7, so you probably need a pyenv with just 3.6. If you are unfamiliar, use conda like I did cos it made this super easy |
"This issue is being marked as stale due to inactivity. Remove label or comment to prevent closure in 5 days." |
"This issue is being closed because it has been marked as |
I am trying to run the Mini speech commands example and am facing the error
Didn't find op for builtin opcode 'CONV_2D' version '3'. An older version of this builtin might be supported. Are you using an old TFLite binary with a newer model?
at setup() and then errortflite micro requested feature data size 536907080 doesn't match 1960
in loop().I trained my model following the example : https://colab.research.google.com/github/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/examples/micro_speech/train/train_micro_speech_model.ipynb#scrollTo=rNQdAplJV1fz
with the only change of
WANTED_WORDS = "on,off,stop,go"
TFLite micro example: only changed the g_model[] with the model generated after training using the above notebook, and the
kCategoryLabels
values as "on, off, stop, go"Tensorflow version :
2.15.0
Board:
Arduino BLE sense Nano
The text was updated successfully, but these errors were encountered: