Загрузка страницы

Intro to TinyML Part 1: Training a Neural Network for Arduino in TensorFlow | Digi-Key Electronics

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 (https://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 (https://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 https://www.youtube.com/watch?v=Ejld8XZmvwE
Getting Started with Machine Learning Using TensorFlow and Keras https://www.youtube.com/watch?v=HCG3hFe1KYY

Code for this video can be found here: https://gist.github.com/ShawnHymel/79237fe6aee5a3653c497d879f746c0c

Project Link: https://www.digikey.com/en/maker/projects/intro-to-tinyml-part-1-training-a-model-for-arduino-in-tensorflow/8f1fc8c0b83d417ab521c48864d2a8ec

Product Links:
Arduino Nano 33 BLE Sense https://www.digikey.com/product-detail/en/arduino/ABX00031/1050-ABX00031-ND/10239970

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

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 Tutorial Part 1: Wake Word Feature Extraction
https://www.digikey.com/en/maker/projects/tensorflow-lite-tutorial-part-1-wake-word-feature-extraction/54e1ce8520154081a58feb301ef9d87a

TensorFlow Lite Tutorial Part 2: Speech Recognition Model Training
https://www.digikey.com/en/maker/projects/tensorflow-lite-tutorial-part-2-speech-recognition-model-training/d8d04a2b60a442cf8c3fa5c0dd2a292b

TensorFlow Lite Tutorial Part 3: Speech Recognition on Raspberry Pi
https://www.digikey.com/en/maker/projects/tensorflow-lite-tutorial-part-3-speech-recognition-on-raspberry-pi/8a2dc7d8a9a947b4a953d37d3b271c71

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 Part 1: Training a Neural Network for Arduino in TensorFlow | Digi-Key Electronics канала DigiKey
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
6 апреля 2020 г. 18:30:01
00:11:09
Яндекс.Метрика