Skip to Content
移动端AI与ML应用开发:基于iOS和Android
book

移动端AI与ML应用开发:基于iOS和Android

by Laurence Moroney
January 2023
Intermediate to advanced
288 pages
6h 6m
Chinese
China Machine Press
Content preview from 移动端AI与ML应用开发:基于iOS和Android
160
|
9
有关模型的元数据,例如用于创建模型的单词词典。为了有一个良好的开始,让我们先
探索一下 TensorFlow Lite Model Maker
9.1
使用
TensorFlow Lite Model Maker
创建模型
TensorFlow Lite Model Maker 设计的一个核心场景是图像分类,它声称只需四行代码
就可以帮助你创建一个基本模型。此外,该模型将与 Android Studio 的导入功能一起使
用,因此你不必在资产文件夹中搞得乱七八糟,它会生成代码来帮助你入门。正如你将
在第 10 章看到的,使用 Model Maker 制作的模型使你的应用程序更容易使用,因为将
Android 数据表示转换为模型所需的张量的艰巨任务已被抽象为使用 Android Studio
入模型时自动生成的辅助类。不幸的是,在撰写本书时,Xcode 还没有等效的工具,因
此你需要使用自己编写的代码来完成大部分模型数据的输入 / 输出,但我们将通过一些
示例在第 11 章中给你一个良好的开始。
使用 Model Maker 创建模型非常简单。你使用 Python,而我已经为你创建了一个 Python
notebook,它可以在本书的代码库(
https://oreil.ly/9ImxO
)中找到。
首先安装
tflite-model-maker
包:
!pip install -q tflite-model-maker
完成后,你可以像这样在 TensorFlow Lite Model ...
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

人工智能驱动的商业智能

人工智能驱动的商业智能

Tobias Zwingmann
Lua游戏AI开发指南

Lua游戏AI开发指南

Posts & Telecom Press, David Young
人工智能技术与大数据

人工智能技术与大数据

Posts & Telecom Press, Anand Deshpande, Manish Kumar

Publisher Resources

ISBN: 9787111713081