TinyML: Getting Started with TensorFlow Lite for Microcontrollers | Digi-Key Electronics
In this tutorial, Shawn shows you how to use the TensorFlow Lite for Microcontrollers library to perform machine learning tasks on embedded systems. Specifically, he uses the STM32CubeIDE, but TensorFlow Lite for Microcontrollers can be copied to almost any embedded build system.
You will need first need to train a sample neural network by following the steps in this video: https://www.youtube.com/watch?v=BzzqYNYOcWc. Download all three model files (.h5, .tflite, .h).
We show you how to generate the TensorFlow Lite for Microcontrollers source code files using the Make build system. Note that for this step, you will need access to Linux or macOS. From there, you can copy the model file and TensorFlow Lite source code files to your embedded project directory.
We demonstrate how to include the necessary TensorFlow Lite source files and any changes that need to be made to them. After, we walk you through the code for running inference using the trained neural network.
Finally, we measure the required flash and RAM used to run our basic neural network as well as the time it takes to run inference. These numbers can be used to compare against other machine learning frameworks, such as X-Cube-AI.
Before starting, we recommend you watch the following videos:
What is Edge AI https://www.youtube.com/watch?v=Ejld8XZmvwE
Getting Started with Machine Learning Using TensorFlow and Keras https://www.youtube.com/watch?v=HCG3hFe1KYY
Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow https://www.youtube.com/watch?v=BzzqYNYOcWc
Product Links:
Nucleo-L432KC - https://www.digikey.com/product-detail/en/stmicroelectronics/NUCLEO-L432KC/497-16592-ND/6132763
Related Videos:
Intro to Edge AI
https://www.youtube.com/watch?v=Ejld8XZmvwE
Getting Started with Machine Learning Using TensorFlow and Keras
https://www.youtube.com/watch?v=HCG3hFe1KYY
Intro to TensorFlow Lite Part 1: Wake Word Feature Extraction
https://www.youtube.com/watch?v=0fn7pj7Dutc
Intro to TensorFlow Lite Part 2: Speech Recognition Model Training
https://www.youtube.com/watch?v=yv_WVwr6OkI
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi
https://www.youtube.com/watch?v=8-vl9bNY9aI
Low-Cost Data Acquisition (DAQ) with Arduino and Binho for Machine Learning
https://www.youtube.com/watch?v=kZ5uGLfvnwA
Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow
https://www.youtube.com/watch?v=BzzqYNYOcWc
Intro to TinyML Part 2: Deploying a TensorFlow Lite Model to Arduino
https://www.youtube.com/watch?v=dU01M61RW8s
Edge AI Anomaly Detection Part 1: Data Collection
https://www.youtube.com/watch?v=Bxd7W1I-tq4
Edge AI Anomaly Detection Part 2: Feature Extraction and Model Training
https://www.youtube.com/watch?v=Mu3CzG-na4k
Edge AI Anomaly Detection Part 3: Deploy Machine Learning Models to Raspberry Pi | Digi-Key
https://www.youtube.com/watch?v=3lCeYjnuTAk
Edge AI Anomaly Detection Part 4: Deploy TinyML Model in Arduino to ESP32
https://www.youtube.com/watch?v=Ya923oUF33U
Related Project Links:
TinyML: Getting Started with TensorFlow Lite for Microcontrollers https://www.digikey.com/en/maker/projects/tinyml-getting-started-with-tensorflow-lite-for-microcontrollers/c0cdd850f5004b098d263400aa294023
Related Articles:
What is Edge AI?
https://www.digikey.com/en/maker/projects/what-is-edge-ai-machine-learning-iot/4f655838138941138aaad62c170827af
Getting Started with Machine Learning Using TensorFlow and Keras
https://www.digikey.com/en/maker/projects/getting-started-with-machine-learning-using-tensorflow-and-keras/0746640deea84313998f5f95c8206e5b
TensorFlow Lite Tutorials: https://www.digikey.com/en/maker/search-results?y=13825c8674444e22884d8d26197819d1&k=TensorFlow%20Lite%20Tutorial
Low-Cost Data Acquisition (DAQ) with Arduino and Binho for ML
https://www.digikey.com/en/maker/projects/lowcost-data-acquisition-daq-with-arduino-and-binho-for-ml/bf39a39f07d145d297e60c0e1f257db3
Intro to TinyML: https://www.digikey.com/en/maker/search-results?y=13825c8674444e22884d8d26197819d1&k=Intro%20to%20TinyML
Edge AI Anomaly Detection: https://www.digikey.com/en/maker/search-results?y=13825c8674444e22884d8d26197819d1&k=Edge%20AI%20Anomaly%20Detection
Видео TinyML: Getting Started with TensorFlow Lite for Microcontrollers | Digi-Key Electronics канала DigiKey
You will need first need to train a sample neural network by following the steps in this video: https://www.youtube.com/watch?v=BzzqYNYOcWc. Download all three model files (.h5, .tflite, .h).
We show you how to generate the TensorFlow Lite for Microcontrollers source code files using the Make build system. Note that for this step, you will need access to Linux or macOS. From there, you can copy the model file and TensorFlow Lite source code files to your embedded project directory.
We demonstrate how to include the necessary TensorFlow Lite source files and any changes that need to be made to them. After, we walk you through the code for running inference using the trained neural network.
Finally, we measure the required flash and RAM used to run our basic neural network as well as the time it takes to run inference. These numbers can be used to compare against other machine learning frameworks, such as X-Cube-AI.
Before starting, we recommend you watch the following videos:
What is Edge AI https://www.youtube.com/watch?v=Ejld8XZmvwE
Getting Started with Machine Learning Using TensorFlow and Keras https://www.youtube.com/watch?v=HCG3hFe1KYY
Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow https://www.youtube.com/watch?v=BzzqYNYOcWc
Product Links:
Nucleo-L432KC - https://www.digikey.com/product-detail/en/stmicroelectronics/NUCLEO-L432KC/497-16592-ND/6132763
Related Videos:
Intro to Edge AI
https://www.youtube.com/watch?v=Ejld8XZmvwE
Getting Started with Machine Learning Using TensorFlow and Keras
https://www.youtube.com/watch?v=HCG3hFe1KYY
Intro to TensorFlow Lite Part 1: Wake Word Feature Extraction
https://www.youtube.com/watch?v=0fn7pj7Dutc
Intro to TensorFlow Lite Part 2: Speech Recognition Model Training
https://www.youtube.com/watch?v=yv_WVwr6OkI
Intro to TensorFlow Lite Part 3: Speech Recognition on Raspberry Pi
https://www.youtube.com/watch?v=8-vl9bNY9aI
Low-Cost Data Acquisition (DAQ) with Arduino and Binho for Machine Learning
https://www.youtube.com/watch?v=kZ5uGLfvnwA
Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow
https://www.youtube.com/watch?v=BzzqYNYOcWc
Intro to TinyML Part 2: Deploying a TensorFlow Lite Model to Arduino
https://www.youtube.com/watch?v=dU01M61RW8s
Edge AI Anomaly Detection Part 1: Data Collection
https://www.youtube.com/watch?v=Bxd7W1I-tq4
Edge AI Anomaly Detection Part 2: Feature Extraction and Model Training
https://www.youtube.com/watch?v=Mu3CzG-na4k
Edge AI Anomaly Detection Part 3: Deploy Machine Learning Models to Raspberry Pi | Digi-Key
https://www.youtube.com/watch?v=3lCeYjnuTAk
Edge AI Anomaly Detection Part 4: Deploy TinyML Model in Arduino to ESP32
https://www.youtube.com/watch?v=Ya923oUF33U
Related Project Links:
TinyML: Getting Started with TensorFlow Lite for Microcontrollers https://www.digikey.com/en/maker/projects/tinyml-getting-started-with-tensorflow-lite-for-microcontrollers/c0cdd850f5004b098d263400aa294023
Related Articles:
What is Edge AI?
https://www.digikey.com/en/maker/projects/what-is-edge-ai-machine-learning-iot/4f655838138941138aaad62c170827af
Getting Started with Machine Learning Using TensorFlow and Keras
https://www.digikey.com/en/maker/projects/getting-started-with-machine-learning-using-tensorflow-and-keras/0746640deea84313998f5f95c8206e5b
TensorFlow Lite Tutorials: https://www.digikey.com/en/maker/search-results?y=13825c8674444e22884d8d26197819d1&k=TensorFlow%20Lite%20Tutorial
Low-Cost Data Acquisition (DAQ) with Arduino and Binho for ML
https://www.digikey.com/en/maker/projects/lowcost-data-acquisition-daq-with-arduino-and-binho-for-ml/bf39a39f07d145d297e60c0e1f257db3
Intro to TinyML: https://www.digikey.com/en/maker/search-results?y=13825c8674444e22884d8d26197819d1&k=Intro%20to%20TinyML
Edge AI Anomaly Detection: https://www.digikey.com/en/maker/search-results?y=13825c8674444e22884d8d26197819d1&k=Edge%20AI%20Anomaly%20Detection
Видео TinyML: Getting Started with TensorFlow Lite for Microcontrollers | Digi-Key Electronics канала DigiKey
Комментарии отсутствуют
Информация о видео
6 июля 2020 г. 18:30:01
00:18:36
Другие видео канала