Рет қаралды 137,827
In this tutorial series, Shawn introduces the concept of Tiny Machine Learning (TinyML), which consists of running machine learning algorithms on microcontrollers.
For the first part, we use TensorFlow and Google Colab to train a simple neural network model that predicts the output of the sine function. While this is an inefficient method of creating a sinewave, it allows us to play with small, functioning, and non-linear neural networks.
The example training steps shown in this video are accomplished with Google Colab (colab.research.google.com/). This web-based Python editing software allows us to play with TensorFlow without needing to install various packages on our local machine.
Once we have a functioning model, we convert itto a TensorFlow Lite (tflite) model file. We then write a quick script that reads the bytes from the tflite file and creates a C header file for us to load into our embedded program on the next episode.
Finally, we can download both the .tflite and .h header file to our computer for deployment to the Arduino, which we will cover in the next episode. Netron (github.com/lutzroeder/netron) can be used to examine the model in a slick GUI.
Before starting, we recommend you watch the following videos:
What is Edge AI • Intro to Edge AI: Mach...
Getting Started with Machine Learning Using TensorFlow and Keras • Getting Started with T...
Code for this video can be found here: gist.github.com/ShawnHymel/79...
Project Link: www.digikey.com/en/maker/proj...
Product Links:
Arduino Nano 33 BLE Sense www.digikey.com/product-detai...
Related Videos:
Intro to Edge AI
• Intro to Edge AI: Mach...
Getting Started with Machine Learning Using TensorFlow and Keras
• Getting Started with T...
Intro to TensorFlow Lite Part 1: Wake Word Feature Extraction
• Intro to TensorFlow Li...
Intro to TensorFlow Lite Part 2: Speech Recognition Model Training
• Intro to TensorFlow Li...
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi • Intro to TensorFlow Li...
Low-Cost Data Acquisition (DAQ) with Arduino and Binho for Machine Learning
• Low-Cost Data Acquisit...
Related Articles:
What is Edge AI?
www.digikey.com/en/maker/proj...
Getting Started with Machine Learning Using TensorFlow and Keras
www.digikey.com/en/maker/proj...
TensorFlow Lite Tutorial Part 1: Wake Word Feature Extraction
www.digikey.com/en/maker/proj...
TensorFlow Lite Tutorial Part 2: Speech Recognition Model Training
www.digikey.com/en/maker/proj...
TensorFlow Lite Tutorial Part 3: Speech Recognition on Raspberry Pi
www.digikey.com/en/maker/proj...
Low-Cost Data Acquisition (DAQ) with Arduino and Binho for ML
www.digikey.com/en/maker/proj...