卷积神经网络吴恩达coursera

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)

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-02-18 09:50:02       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-02-18 09:50:02       101 阅读
  3. 在Django里面运行非项目文件

    2024-02-18 09:50:02       82 阅读
  4. Python语言-面向对象

    2024-02-18 09:50:02       91 阅读

热门阅读

  1. Hot100-hash表-两数之和

    2024-02-18 09:50:02       52 阅读
  2. 困于环中的机器人

    2024-02-18 09:50:02       56 阅读
  3. 带你了解软件系统架构的演变

    2024-02-18 09:50:02       47 阅读
  4. 软件系统支持联营模式:实现共赢共利的关键

    2024-02-18 09:50:02       49 阅读
  5. 浅谈Websocket

    2024-02-18 09:50:02       54 阅读
  6. Mac更新node版本

    2024-02-18 09:50:02       47 阅读
  7. 函数作为参数传递和匿名函数(lambda)

    2024-02-18 09:50:02       48 阅读
  8. “AI文明的新纪元:从ChatGPT到Sora的跨越“

    2024-02-18 09:50:02       45 阅读