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
使用
Firebase
产品化应用程序
|
215
model = image_classifier.create(train_data,
validation_data=validation_data)
model.export(export_dir='/mm_flowers1/')
mm_flowers
目录中,你现在拥有了一个 TensorFlow Lite 模型和相关的元数据,可以
下载并在你的应用程序中使用,如第 9 章所述。
你会注意到你只是简单地调用了
image_classifier.create
而没有定义任何类型的规
范。这将创建一个使用 EfficientNet 模型作为默认底层模型类型的图像分类器模型。选
择这种模型架构是因为它被认为是最先进的图像分类器,可以处理非常小的模型,因此
对移动设备很有效。你可以在
https://tfhub.dev/google/collections/efficientnet/1
上了解有
EfficientNet 的更多信息。
但是,有一系列模型架构称为 MobileNet,顾名思义,它非常适合移动场景。那么,如
果你创建了一个使用 MobileNet 作为底层架构的模型,并将其作为第二个模型会如何
呢?你可以将基于 EfficientNet 的模型部署给你的一些用户,并将基于 MobileNet 的模
型部署给其他用户。然后,你可以测量这些模型的功效,以帮助你决定向所有用户推出
哪一个。
因此,要在 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