Skip to Content
TensorFlow.js学习手册
book

TensorFlow.js学习手册

by Gant Laborde
September 2022
Intermediate to advanced
360 pages
6h 32m
Chinese
China Electric Power Press Ltd.
Content preview from TensorFlow.js学习手册
模型介绍
135
5
-
5
:包围框叠加
通常,模型的包围框输出相当复杂,因为它要处理各种不同的类和叠加框。
一般地,模型会让你使用一些数学方法适当地整理结果。我们并不处理这个
问题,而会重点讨论
TensorFlow.js
中如何在预测输出上画一个矩形。有时这
被称为对象本地化(
object localization
)。
最后这个练习的模型是一个宠物脸部探测器。这个模型将尽其所能地在它认
为的宠物脸部所在位置为我们提供一个包围框。通常,让人们去看可爱的猫
猫狗狗并不难,但这个模型可以有各种各样的应用。一旦你知道了一个宠物
脸部所在的位置,就可以用这些数据来训练其他模型,比如识别宠物或者检
查是不是要戳戳它们可爱的小鼻子。你懂的……这就是科学!
5.4.1
本地化模型
这个模型已经在一个公共数据集上进行了训练,这个数据集名为
Oxford-IIIT
Pet Dataset
https://oreil.ly/Pz0D9
)。这个小模型(大约
2 MB
)希望得到
256
×
256 Float32
宠物图像
RGB
输入,并输出
4
个数,标识宠物脸部的包围框。
一维张量中的四个数分别表示左上点和右下点。
136
5
屏幕坐标
与正常的笛卡尔坐标系中一样,点标识为
X
Y
X
是水平坐标,
Y
垂直坐标。因此,由模型得到的四个值将确定两个点。 ...
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

编写整洁的Python代码(第2版)

编写整洁的Python代码(第2版)

Posts & Telecom Press, Mariano Anaya
Python编程入门与实战

Python编程入门与实战

Posts & Telecom Press, Fabrizio Romano
scikit-learn机器学习(第2版)

scikit-learn机器学习(第2版)

Posts & Telecom Press, Gavin Hackeling
自然语言处理与计算语言学

自然语言处理与计算语言学

Posts & Telecom Press, Bhargav Srinivasa-Desikan

Publisher Resources

ISBN: 9787519869625