【助记】CNN的维度变化

Size In Covolutional Layer: l \text{Size In Covolutional Layer: l}\\ Size In Covolutional Layer: l
F i l t e r   S i z e : f [ l ] Width and hight of a filter P a d d i n g : p [ l ] The extra edge added around S t r i d e : s [ l ] The step for filter to move C h a n n e l : n c [ l ] Equal to the numbers of filters F i l t e r : f [ l ] × f [ l ] × n c [ l − 1 ] I n p u t : n h [ l − 1 ] × n w [ l − 1 ] × n c [ l − 1 ] e.g.An image shaped(32,32,3) O u t p u t : n h [ l ] × n w [ l ] × n c [ l ] n n / w [ l ] = ⌊ n n / w [ l − 1 ] + 2 p [ l ] − f [ l ] s [ l ] + 1 ⌋ N o t e 1 : Deeper,  n h / w [ l ] ↑ while  n c [ l ] ↓ N o t e 2 : I n p u t → C o n v → A d d   B i a s → R e L U → O u t p u t \begin{aligned} && Filter\ Size&: & f^{[l]} &\quad \text{Width and hight of a filter}\\ && Padding &: &p^{[l]} &\quad \text{The extra edge added around}\\ && Stride & : &s^{[l]} &\quad \text{The step for filter to move}\\ && Channel &: &n_c^{[l]}&\quad \text{Equal to the numbers of filters}\\ && Filter&: & f^{[l]} \times f^{[l]} \times n_c^{[l-1]}\\ && Input&: & n_h^{[l-1]} \times n_w^{[l-1]} \times n_c^{[l-1]} &\quad \text{e.g.An image shaped(32,32,3)}\\ && Output&: & n_h^{[l]} \times n_w^{[l]} \times n_c^{[l]}\\ && n_{n/w}^{[l]} &= & \biggl \lfloor\frac{n_{n/w}^{[l-1]} + 2p^{[l]}-f^{[l]}}{s^{[l]}}+1 \biggr \rfloor\\ && Note1 & : & \text{Deeper, } n_{h/w}^{[l]} \uparrow \text{while } n_c^{[l]} \downarrow\\ && Note2 & : &Input \rightarrow Conv \rightarrow Add\ Bias & \rightarrow ReLU \rightarrow Output \end{aligned} Filter SizePaddingStrideChannelFilterInputOutputnn/w[l]Note1Note2:::::::=::f[l]p[l]s[l]nc[l]f[l]×f[l]×nc[l1]nh[l1]×nw[l1]×nc[l1]nh[l]×nw[l]×nc[l]s[l]nn/w[l1]+2p[l]f[l]+1Deeper, nh/w[l]while nc[l]InputConvAdd BiasWidth and hight of a filterThe extra edge added aroundThe step for filter to moveEqual to the numbers of filterse.g.An image shaped(32,32,3)ReLUOutput

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值