eloquentarduino / EloquentTinyML

Eloquent interface to Tensorflow Lite for Microcontrollers
281 stars 55 forks source link

TinyML for arduino Uno #26

Closed DeepthiSudharsan closed 3 years ago

DeepthiSudharsan commented 3 years ago

Hi!

I was going through this wonderful post of yours https://eloquentarduino.github.io/2021/03/tinyml-classification-example-wine-dataset/ .

I was trying to understand and replicate the part where you convert the code to C++ and run the neural network on the microcontroller. I tried doing that process with the wine dataset as in your blog and also just tried running the EloquentTinyMl examples on my Arduino Uno. But I am repeatedly getting this same error.

image

image

I am unable to figure out where I am going wrong and how to go about it. Any help on this issue is very much appreciated :).

Thank you for your wonderful articles on TinyMl once again!!

ankaiser4711 commented 3 years ago

arduino uno has to less memory to perform any tinyml stuff. try a ‚bigger’ controller. f. e. esp32. see benchmark posts for tested boards.


Andreas Kaiser Karl-Marx-Str. 19 D-67466 Lambrecht

@.***

www.swe-kaiser.de www.scherwel.de Tel. 0170 7723834 Fax. 03212 1078324

Am 25.05.2021 um 13:52 schrieb Deepthi-S @.***>:

 Hi!

I was going through this wonderful post of yours https://eloquentarduino.github.io/2021/03/tinyml-classification-example-wine-dataset/ .

I was trying to understand and replicate the part where you convert the code to C++ and run the neural network on the microcontroller. I tried doing that process with the wine dataset as in your blog and also just tried running the EloquentTinyMl examples on my Arduino Uno. But I am repeatedly getting this same error.

I am unable to figure out where I am going wrong and how to go about it. Any help on this issue is very much appreciated :).

Thank you for your wonderful articles on TinyMl once again!!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

DeepthiSudharsan commented 3 years ago

Oh thank you very much for the info @ankaiser4711 ! Currently, I have only Raspberry pi 3 Model B and Arduino Uno at my disposal to work with. Will try finding an alternative way. Thanks a lot!

eloquentarduino commented 3 years ago

@ankaiser4711 is correct. 2 Kb of RAM of the UNO is way under the minimum requirement for Tensorflow. I suggest you look at alternative algorithms, like Decision Tree and Random Forest

DeepthiSudharsan commented 3 years ago

Thank you so much @eloquentarduino . Will try it out!