Skip to Content
TinyML:基于TensorFlow Lite 在Arduino 和超低功耗微控制器上部署机器学习
book

TinyML:基于TensorFlow Lite 在Arduino 和超低功耗微控制器上部署机器学习

by Pete Warden, Daniel Situnayake
September 2020
Intermediate to advanced
434 pages
9h 6m
Chinese
China Machine Press
Content preview from TinyML:基于TensorFlow Lite 在Arduino 和超低功耗微控制器上部署机器学习
165
8
唤醒词检测:训练模型
在第 7 章中,我们围绕一个模型构建了一个应用程序,该模型被训练为可以识别“ yes
和“no ”。在本章中,我们将训练一个可以识别不同单词的
模型。
我们的应用程序代码相当通用,它所做的只是捕获和处理音频,将其输入 TensorFlow
Lite 模型,并根据输出执行一些操作。应用程序基本上不在乎模型在识别什么单词。这
意味着如果我们训练一个新的模型,我们可以直接将它放入我们的应用程序中,新模型
应该可以立即工作。
在训练新模型时,我们需要考虑以下几点:
输入
新模型必须使用与应用程序代码相同的预处理,使用相同形状和格式的输入数据进
行训练。
输出
新模型的输出必须采用相同的格式:一个概率张量,其中每个值分别对应一种类别
的概率。
训练数据
无论选择哪一个新的单词,都需要很多人的录音,这样才可以训练新模型。
优化
模型必须经过优化才能在内存有限的微控制器上高效运行。
幸运的是,我们现有的模型是使用 TensorFlow 团队发布的公开脚本进行训练的,所以
我们可以使用此脚本来训练新模型。我们还可以使用一个免费的语音数据集作为训练
数据。
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据科学中的实用统计学(第2版)

数据科学中的实用统计学(第2版)

Peter Bruce, Andrew Bruce, Peter Gedeck
程序设计导论:Python语言实践

程序设计导论:Python语言实践

罗伯特 塞奇威克, 凯文 韦恩, 罗伯特 唐德罗
C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普
Python程序设计:人工智能案例实践

Python程序设计:人工智能案例实践

保罗 戴特尔, 哈维 戴特尔

Publisher Resources

ISBN: 9787111664222