5月班第6次课 - CNN扩展 图像识别与定位 物体检测 NeuralStyle 【微信公众号:一介狂书生】

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 61

CNN推展案例:图像检测、NeuralStyle

七月算法 寒老师
2016年5月29日
主要内容
o 图像识别与定位
n 思路1:视作回归
n 思路2:借助图像窗口
o 物体识别
n 边缘策略/选择性搜索 => R-CNN
n R-CNN => Fast R-CNN
n Fast R-CNN => Faster R-CNN
o NeuralStyle艺术化图片
n 原理
n 更多思考
2 julyedu.com
5 月深度学习班
卷积神经网络

3 julyedu.com
5 月深度学习班
物体识别

4 julyedu.com
5 月深度学习班
图像相关任务

5 julyedu.com
5 月深度学习班
图像识别+定位

6 julyedu.com
5 月深度学习班
ImageNet

7 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 4个数字,用欧氏距离损失

8 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 步骤1:
n 先解决简单问题,搭一个识别图像的神经网络
n 在AlexNet VGG GoogleLenet上fine-tuning一下

9 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 步骤2:
n 在上述神经网络的尾部展开
n 成为classification + regression模式

10 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 步骤3:
n Regression那个部分用欧氏距离损失
n 使用SGD训练

11 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 步骤4:
n 预测阶段把2个头部拼上
n 完成不同的功能

12 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 对每个类都有一个回归?

13 julyedu.com
5 月深度学习班
思路1:看作回归问题
o Regression的部分加在哪?

14 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 对每个类都有一个回归?

15 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 如果对于猫也要区分不同的部位?

16 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 思考1:如何对于猫区分不同的部位?

17 julyedu.com
5 月深度学习班
思路1:看作回归问题
o 思考2:如何识别人的姿势?
n 简单粗暴把人“拆”了

18 julyedu.com
5 月深度学习班
思路2:取图像窗口
o 还是刚才的classification + regression思路
o 咱们取不同的大小的“框”
o 让框出现在不同的位置
o 判定得分
o 取得分最高的那个

19 julyedu.com
5 月深度学习班
思路2:取图像窗口

20 julyedu.com
5 月深度学习班
思路2:取图像窗口

21 julyedu.com
5 月深度学习班
思路2:取图像窗口

22 julyedu.com
5 月深度学习班
思路2:取图像窗口

23 julyedu.com
5 月深度学习班
思路2:取图像窗口

24 julyedu.com
5 月深度学习班
思路2:取图像窗口

25 julyedu.com
5 月深度学习班
思路2:取图像窗口

26 julyedu.com
5 月深度学习班
图像识别+定位

27 julyedu.com
5 月深度学习班
物体识别

28 julyedu.com
5 月深度学习班
物体识别
o 再次看做回归问题?

29 julyedu.com
5 月深度学习班
物体识别
o 其实你不知道图上有多少个物体…

30 julyedu.com
5 月深度学习班
物体识别
o 看做分类问题?

31 julyedu.com
5 月深度学习班
物体识别
o 看做classification的问题是?

n 你需要找很多位置,给很多个不同大小的框
n 你还需要对框内的图像分类

n 当然,如果你的GPU很强大,恩,那加油做吧…

32 julyedu.com
5 月深度学习班
物体识别:边缘策略
o 看做classification,有没有办法优化下?

33 julyedu.com
5 月深度学习班
物体识别:选择性搜索
o 看做classification,有没有办法优化下?

34 julyedu.com
5 月深度学习班
物体识别:其他方式?

35 julyedu.com
5 月深度学习班
R-CNN

36 julyedu.com
5 月深度学习班
R-CNN

37 julyedu.com
5 月深度学习班
R-CNN

38 julyedu.com
5 月深度学习班
R-CNN

39 julyedu.com
5 月深度学习班
R-CNN

40 julyedu.com
5 月深度学习班
R-CNN

41 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

42 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

43 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

44 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

45 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

46 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

47 julyedu.com
5 月深度学习班
R-CNN => Fast-rcnn

48 julyedu.com
5 月深度学习班
速度对比

49 julyedu.com
5 月深度学习班
Fast-rcnn问题与解决办法

50 julyedu.com
5 月深度学习班
Faster-rcnn

51 julyedu.com
5 月深度学习班
Faster-rcnn

52 julyedu.com
5 月深度学习班
Faster-rcnn

53 julyedu.com
5 月深度学习班
Faster-rcnn

54 julyedu.com
5 月深度学习班
速度/准度对比

55 julyedu.com
5 月深度学习班
应用2:NeuralStyle

56 julyedu.com
5 月深度学习班
应用2:NeuralStyle

57 julyedu.com
5 月深度学习班
怎么做的?

58 julyedu.com
5 月深度学习班
怎么做的?

59 julyedu.com
5 月深度学习班
怎么做的?

60 julyedu.com
5 月深度学习班
感谢大家!
恳请大家批评指正!

61 julyedu.com
5 月深度学习班

You might also like