卷积神经网络吴恩达coursera

本文详细介绍了卷积神经网络的基础概念,包括矩阵卷积运算、边缘检测、填充处理(validvssameconvolution)、步长以及三维体积卷积的过程,帮助读者理解这些关键概念在CNN中的作用。
摘要由CSDN通过智能技术生成

Convolutional NN

Foundations of CNN

matrixs convolution

Edge detection
Vertical / horizontial

conv-forward(tf.nn.cov2d)

m a t r i x ( 6 × 6 ) ∗ f i l t e r ( 3 × 3 ) = m a t r i x ( 4 × 4 ) matrix(6\times6)*filter(3\times3)=matrix(4\times4) matrix(6×6)filter(3×3)=matrix(4×4)

m a t r i x ( n × n ) ∗ f i l t e r ( f × f ) = m a t r i x ( ( n − f + 1 ) × ( n − f + 1 ) ) matrix(n\times n)*filter(f\times f)=matrix((n-f+1)\times (n-f+1)) matrix(n×n)filter(f×f)=matrix((nf+1)×(nf+1))

Padding

problems:

  • shrinking output
  • throw away infomation from edge

m a t r i x ( ( n + 2 p ) × ( n + 2 p ) ) ∗ f i l t e r ( f × f ) = m a t r i x ( ( n + 2 p − f + 1 ) × ( n + 2 p − f + 1 ) matrix((n+2p)\times (n+2p))*filter(f\times f)=matrix((n+2p-f+1)\times (n+2p-f+1) matrix((n+2p)×(n+2p))filter(f×f)=matrix((n+2pf+1)×(n+2pf+1)

valid convolution / same convolution

“same” : p = f − 1 2 ( o d d    f ) p = \frac{f-1}{2} (odd\;f) p=2f1(oddf)

Stride

m a t r i x ( ( n + 2 p ) × ( n + 2 p ) ) ∗ f i l t e r ( f × f ) = m a t r i x ( ( ( n + 2 p − f ) s + 1 ) × ( ( n + 2 p − f ) s + 1 ) matrix((n+2p)\times (n+2p))*filter(f\times f)=matrix((\frac{(n+2p-f)}{s}+1)\times (\frac{(n+2p-f)}{s}+1) matrix((n+2p)×(n+2p))filter(f×f)=matrix((s(n+2pf)+1)×(s(n+2pf)+1)

Volume convolution

m a t r i x ( n × n × n c ) ∗ f i l t e r ( f × f × n c ) = m a t r i x ( ( n − f + 1 ) × ( n − f + 1 ) × n c ) matrix(n\times n\times n_c)*filter(f\times f\times n_c)=matrix((n-f+1)\times (n-f+1)\times n_c) matrix(n×n×nc)filter(f×f×nc)=matrix((nf+1)×(nf+1)×nc)

  • 6
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值