google-coral / project-teachable

Example Project: Teachable Machine
https://coral.withgoogle.com/projects/teachable-machine/
Apache License 2.0
26 stars 15 forks source link

How to run previously teached models after the boot? #13

Open moorka2820 opened 4 years ago

moorka2820 commented 4 years ago

Is it possible to save the current models that you teached by pressing the buttons, so when you reboot your pi, it will start recognizing previous models? For example: i run the script, i teach machine to recognize the objects by pressing buttons. Than i reboot the Pi and script runs on boot. And i need this script to start recognize the previous objects at the boot.

mtyka commented 4 years ago

Yes, though you'll have to add code to save and load the embeddings to disk, which are currently just kept in memory. It would be quite easy to add. https://github.com/google-coral/project-teachable/blob/master/embedding.py#L88

On Thu, Jul 16, 2020 at 10:20 PM moorka2820 notifications@github.com wrote:

Is it possible to save the current models that you teached by pressing the buttons, so when you reboot your pi, it will start recognizing previous models? For example: i run the script, i teach machine to recognize the objects by pressing buttons. Than i reboot the Pi and script runs on boot. And i need this script to start recognize the previous objects at the boot.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google-coral/project-teachable/issues/13, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4ZJMXUB3RWDASOJMBFKLR37NQXANCNFSM4O5RVD5Q .

-- [ www.miketyka.com Twitter: @mtyka http://www.twitter.com/mtyka Instagram: @miketyka https://www.instagram.com/miketyka/]

moorka2820 commented 4 years ago

First of all i want to say a HUGE THANK YOU Mike Tyka!!! I just started 2 weeks ago with a raspberry pi and i've learned a lot from YOUR projects. You doing a great job! Thank you for your advice, i'll work on that!!

Yes, though you'll have to add code to save and load the embeddings to disk, which are currently just kept in memory. It would be quite easy to add. https://github.com/google-coral/project-teachable/blob/master/embedding.py#L88 On Thu, Jul 16, 2020 at 10:20 PM moorka2820 @.***> wrote: Is it possible to save the current models that you teached by pressing the buttons, so when you reboot your pi, it will start recognizing previous models? For example: i run the script, i teach machine to recognize the objects by pressing buttons. Than i reboot the Pi and script runs on boot. And i need this script to start recognize the previous objects at the boot. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#13>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI4ZJMXUB3RWDASOJMBFKLR37NQXANCNFSM4O5RVD5Q . -- [ www.miketyka.com Twitter: @mtyka http://www.twitter.com/mtyka Instagram: @miketyka https://www.instagram.com/miketyka/]

jackgouda commented 4 years ago

I am happy with this topic. only I don't know what to add (maybe my knowledge level is not high enough yet). but can anyone send an example?