@Daniel thanks for the github link.
are you leveraging transfer learning in these demos?
@Tara the demos we are showing are pi 4, nordic nrf52840, and samd 51
@Duncan our speech model that can detect "yes" or "no" is ~20kb, our vision model that can detect the presence or absence of a person is ~250kb. I'm not sure
@Tara we're actually working on a book that has a chapter about setting up TF Lite for new devices. TF Lite Micro should be a lot easier to port than regular TF Lite too - http://shop.oreilly.com/product/0636920254508.do
@Evan Juras thank you
that looks amazing for when you're far out@Andres Manjarres Unfortunately no. 1) we train regular tensor flow models (and factor in micro controller constraints if possible- small model size, low latency) 2) convert it to a tensorflow lite model 3) run it on a microcontroller that we support.
*I'm not sure of the exact latency, but it's pretty low!
@Duncan we'll show the yes no demo on video right now here too ---
@pt and @Pete Warden !! I'll definitely check it out.
Thanks@Tara drop an email to petewarden@google.com and we might be able to send you a draft copy
Thanks@Meghna Natraj Okey, thanks
@Dan Maloney yes! we would have to take ~100+ photos of me and pt and train a new model to detect us
Limor and PT any Cortex M7 Boards in the works?
Question: Do you plan to build a Deep Learning demo also?
I use google colab for deep learning/keras/tensorflow , mu for CP...what is/will be the ideal tool chain for this experience?
@Pete Warden I'd be interested in that for a high school class...
we haven't written a guide on that yet - hopefully soon, we're learning a lot every weekend!
@limor Cool, thanks. Thought it would be something like that.
@Daniel Situnayake 20kB is impressive! Nice work.
@jcradford please drop me an email too
Thanks@limor do some models made for desktop/server run with tensorflow lite on the SAMD51? Like the more popular image recognition networks like mobilnet or tiny-yolo?
Very cool. Also, Matteo, you misremembered what we generated. It was not a learning capable program, it was a fixed program. We used genetic programming and simulation to develop task specific programs.
I was planning on scraping family photos from Google Photos to train a model for a security system I'm working on
ok! all the demos worked, yay
@Dick Brooks if you want to see the absolute basics of training a deep learning model and deploying it to device, check out this sample: http://github.com/tensorflow/tensorflow/blob/master/tensorflow/lite/experimental/micro/examples/hello_world
one tip for folks who want to play around, check out@pt Is the demo code you are showing for the pi4, Nordic nrf52840, and samd 51 available?
@tara yep!
Everyone, if you miss something, rest assured that there will be a full transcript posted after the chat, as well as links to the demos and livestream.
@Daniel - thank you for the github on learning tensorflow...besides Adafruit learning (most awesome) where else should we go to explore?
@Evan Juras yay i used your awsome guide to make the demo im running now. just changed a couple things and using pygame instead of opencv so it works with framebuffer devices (no X11)
i gotta learn TF
@John Loeffler "In the works" is subjective but signs point to yes ;)
Did you try to use the optimizations like quantization? to reduce the size and improve the power consumption o something like that?
@happyday.mjohnson it's not quite out yet, but @Pete Warden and I are writing this book: http://shop.oreilly.com/product/0636920254508.do
@limor that's so great to hear! Thanks!! Glad it was helpful :D
Play Video
however, if you're looking to learn tensorflow generally, I'd recommend one of these courses:
the goal is to be able to do some type of ML in 5 mins or less from taking it out of the box
Limor and PT any Cortex M7 Boards in the works?
@Pete Warden YES!! Thank you
@John Loeffler I have an informed answer above ;)
@John Loeffler not yet :)
@Daniel, i'm sorry ...didn't get info on tensorflow learning courses... (I'm currently trying CS230/stanford...)
<- eats foot
from youtube "Ronald Mourant
Will the BrainCroft Hat be available as a product? When? Price?"
from youtube "chuck
Do you do training on microcontrollers for something adaptive?"
@limor @pt do some models made for desktop/server run with tensorflow lite on the SAMD51? Like the more popular image recognition networks like mobilnet or tiny-yolo?
Here are some general courses for learning TensorFlow:
- https://www.udacity.com/course/intro-to-tensorflow-for-deep-learning--ud187
- https://www.coursera.org/specializations/tensorflow-in-practice
- https://www.deeplearning.ai/tensorflow-in-practice/
"GJ E
Q: how far are you thinking you will go on making these projects? in the sense of only making identifiers, training models or .... I would like to know what to look forward to"
Not sure if you answered: Did you have a model that can tell the difference between two people?
rather than just object detection
These were all developed by the TensorFlow team at Google and contain roughly the same content
@Daniel - yay - thank you for the course info.
Vid and audio demos are fine but I imagine the models are expensive to train. Are there plans to to create demos that feature just raw data? Readings from multiple sensors and so on.
"rohan joshi
what are upcoming projects ?"
https://www.manning.com/books/deep-learning-with-python
I also love this book; it's by the guy who created Keras, TF's high-level API:How much do you need to know about DL/NN theory in order to use TF efficiently? Or start, at least. I find that deciding what hidden layers and how many of them should go into your NN isnt very clear.
@Phillip Scruggs yes we answered, see above or check out @Evan Juras 's guide
@Phillip Scruggs - @limor answered yes when I asked. She said it would take ~ 100 images to train each person.
great place to start if you're learning! I would emphasize that you DO NOT need to go and learn a bunch of math or do CS-style courses to get started with deep learning
@Daniel Sit
@Daniel - yah the deep learning w/ python is a most excellent book. I also bought the audible so I can sit there look at the pictures and be read to....i love that he doesn't get too much in the math and has an intuitive way about him.
@Daniel Situnayake AH! exactly what i've been doing :s
"Speak & ML", lol
some upcoming projects... 1) speak and spell (speak and ML) kid's toy that sees things and says them, kids play scavenger hunt with it.
2) emoji cam, all it does is sit on your desk and change your mood status based on your smile, etc.
3) video game that changes characters based on what you show it, want to be a cat? show it a cat.
@happyday.mjohnson [What resources do you use for training?] Using colab or even your local desktop (only CPU) just works fine. It would take longer -- but you don't need 'fancy' hardware to get started. :) Especially with micro controller constraints, models sizes and training times are quite less. To get stated, you can train models for a day, try to get them to run on a mcu -- done!. I'll share some resources shortly..
re: braincraft hat - its still under revision, we want to build a few more projects to make sure we didnt miss anything, check out the singup page here - as soon as we have it ready for release we'll email you!
https://www.adafruit.com/product/4374
ADAFRUIT
ADAFRUIT INDUSTRIES
Coming Soon! Machine Learning BrainCraft HAT for Raspberry Pi 4
Adafruit Industries, Unique & fun DIY electronics and kits Coming Soon! Machine Learning BrainCraft HAT for Raspberry Pi 4 ID: 4374 - Coming soon! Sign up to be notified when we have these in the store!The idea behind the BrainCraft board (stand-alone, and Pi “hat”) is that you’d be able to “craft brains” for Machine Learning on the EDGE, with Microcontrollers & Microcomputers.
@pt, @limor and @Pete Warden is there a book/resource to start learning about Tiny ML? I want to do my final project based on tiny ml.
@Sébastien Vézina it's super fun to learn the math stuff along the way, but I would definitely recommend just going through a couple of the intro books. The first one I recommended is great:
https://www.manning.com/books/deep-learning-with-python
Also, this one is very good (but I haven't read it myself yet)
https://www.amazon.com/Hands-Machine-Learning-Scikit-Learn-TensorFlow/dp/1491962291
I have made a simple perception implementation some time ago on an atmega328 , for 1kb challenge and for fun
https://hackaday.io/project/18769-avr-perceptron-initiation-to-neural-networks
Seeing now that we can do speech and image detection using TF on microcontrollers makes me happy. looking forward to see more !.
we are also making it so all the models show up as files on the "drive" so you can just swap them out
@Meghna - thanks. re: colab w/ GPU has been a terrific experience (so far). i also like how easy it is to put datasets on google drive and read in. Also, github integration is nice.
from discord "unawooToday at 3:29 PM
Hi, anyone know of an audio database for tensorflo? i want a microphone in the yard to tell me if someone woofed or meowed"
@Pete Warden and I are working on this book:
For Tiny ML specifically,http://shop.oreilly.com/product/0636920254508.do
any boards planned with MCUs that include tensor accelerators like the MAIX?
@Daniel - so hard to wait for 6/2020....
oh wow, it shouldn't be June 2020!
it should be Jan 2020 - I will have them fix the date :)
@Daniel Situnayake Yep I'm on the 3rd chapter of that book but felt I needed to backtrack a bit after seeing a few mentions of linear algebra - i'll keep reading!
what about preprocessing of sensor data? Are there "best practices" as there are for electronics signal processing?
@Foxmjay cool, do you know about more ATMega ML Projects?
it's already mostly written, and you can sign up to O'Reilly's plan and read the currently finished chapters
On a Pi 4, how long does it take the inference engine to recognize an image? Assume the image is an array of 64 bytes.
@Daniel - thanks for bringing that up about the book. i'll try..
@limor @pt have you done any work with the STM32MP1 or any other Cortex-A / Cortex-M hybrid chipsets?
Oh hey the IRC bridge is down. How useful.
What kind of demo usecases do you use while working on tensorflow?
@Peabody1929 we are going to show that now on vid!
I had an idea to train a model against all the dogs that bark all day in my neighborhood. See if I can identify which dog is barking just from it's "voice". Not sure what I do with that information once I have it though...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.