-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Tiny ML on Arduino: Gesture recognition tutorial results in a blank model.h #11
Comments
I found a temp solution.
I then copied the resulting model.h code to the Arduino IDE project and was able to complete the Gesture recognition tutorial. This worked for the "TinyML Classify objects by color" tutorial as well. |
Please refer to this example on Google Collab. I hope it helps https://github.com/PrashantDandriyal/arduino_GSoC2020/blob/master/activity_tracker/activity_tracker_motionSense_gsoc20.ipynb |
Uh, the link you provided is a GitHub link. I'm not see how that address this issue. |
It is actually a link to the iPython notebook I shared to demonstrate how I obtained the header file-model and thought it may help you get over your errors. |
I got the same problem. The model.h file was blank. I managed to solve it in part, not in a very elegant way. But I hope it helps. I was able to solve it. What I did was to verify the file using TextEdit on a Mac. I realized some of the lines/cells of the flex.csv and punch.csv files where either empty, mixed with another cell or a whole line of cells was out. Apparently when the data from the IMU is gathered to the Arduino's serial monitor it has some issues so when you copy it to a text file, those issues stays. See the line: This is ok: This is not ok: So I had to open the file in excel and manually fix every error in the cells, I took me like 5 minutes but that was the only way I managed to run the Tiny ML colab webpage and run the training, convert and encode functions. After doing this, the model.h file was generated with the data (911kb). Not everything was ok though. I ran the sketch in Arduino IDE using the IMU_Classifier, adding a tab, pasting the model.h data in it. The Arduino serial monitor is responding but is giving me just a "nan" label instead of a float eg. 0.8987 So apparently I managed to solve the model.h problem but still I don't know whats the "nan" problem. BTW I'm following this tutorial https://blog.arduino.cc/2019/10/15/get-started-with-machine-learning-on-arduino/ |
@intratron im getting the same error. Did you find any solution for same ? |
I attempted to run through the Tiny ML on Arduino: Gesture recognition example and it resulted in a a model.h file that is just a model array declaration.
Ex:
This is the example that I was following:
https://colab.research.google.com/github/arduino/ArduinoTensorFlowLiteTutorials/blob/master/GestureToEmoji/arduino_tinyml_workshop.ipynb#scrollTo=f92-4Hjy7kA8
The following Warnings were seen while running the example:
NOTE: An issue was filed with the Colab project but I do not see it listed.
Also, a gesture_model.tflite file was created and has about 145K of data.
The text was updated successfully, but these errors were encountered: