Skip to Content
Python数据科学手册
book

Python数据科学手册

by Jake VanderPlas
January 2018
Intermediate to advanced
470 pages
13h 23m
Chinese
Posts & Telecom Press
Content preview from Python数据科学手册
446
|
第
5
章
如果引入更多的负训练集图像,应该可以改善这个问题。另一种改善方案是用更直接的
方法,例如
困难负样本挖掘
(
hard negative mining
)。在困难负样本挖掘方法中,给分类
器看一些没见过的新图像,找出所有分类器识别错误的假正图像,然后将这些图像增加
到训练集中,再重新训练分类器。
目前的管道只搜索一个尺寸
我们的算法会丢失一些尺寸不是
62
像素 ×
47
像素的人脸。我们可以采用不同尺寸的
窗口来解决这个问题,每次将图形提供给模型之前,都用 skimage.transform.resize 重
置图像尺寸——其实前面使用的 sliding_window() 函数已经具备这种功能。
应该将包含人脸的重叠窗口合并
一个产品级的管道不应该让同一张脸重复出现
30
次,而是将这些重叠的窗口合并成
一个。这个问题可以通过一个无监督的聚类方法(
MeanShift
聚类就是解决这个问题的
好办法)来解决,或者通过机器视觉常用的算法,例如
非极大值抑制
(
nonmaximum
suppression
)来解决。
管道可以更具流线型
一旦解决了以上问题,就可以创建一个更具流线型的管道,将获取训练图像和预测滑动
窗口输出的功能都封装在管道中,那样效果会更好。这正体现了
Python
作为一个数据
科学工具的优势:只要花一点儿功夫,就可以完成原型代码,并将其打包成设计优良
的面向对象
API
,让用户可以轻松地使用它们。我觉得这条建议可以作为“读者练习”,
感兴趣的读者可以试试。
应该考虑使用更新的技术,例如深度学习
不得不说,
HOG ...
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

流畅的Python

Luciano Ramalho
Python数据分析基础

Python数据分析基础

Clinton W. Brownley
Python数据处理

Python数据处理

Jacqueline Kazil, Katharine Jarmul

Publisher Resources

ISBN: 9787115475893