吴恩达选择题部分错题整理week1(卷积神经网络)

The basics of ConvNets

 

3. Suppose your input is a 300 by 300 color (RGB) image, and you use a convolutional layer with 100 filters that are each 5x5. How many parameters does this hidden layer have (including the bias parameters)?

2501

2600

7500

7600

 

answer(D)            reason:单片过滤器的大小为5*5, 由于是RGB图像,即Nc=3,故完整的一个过滤器组成是5*5*3,而每一个过滤器有一个偏置参数b,因此一个完整的过滤器有参数5*5*3 + 1 = 76,故100个过滤器有7600个参数

 

4.You have an input volume that is 63x63x16, and convolve it with 32 filters that are each 7x7, using a stride of 2 and no padding. What is the output volume?

29x29x32

29x29x16

16x16x32

16x16x16

 

answer(A)reson:⌊(nh+2p−f)/s+1⌋×⌊(nw+2p−f)/s+1⌋,带入n = 63, f = 7, s = 2, p = 0,知输出为29*29,由于是32过滤器,因此有32个堆叠输出,故29*29*32

7.You have an input volume that is 32x32x16, and apply max pooling with a stride of 2 and a filter size of 2. What is the output volume?

32x32x8

15x15x16

16x16x16

16x16x8

answer(C) reason:pooling层不会改变通道数同样带入上述公式即可得知⌊(32-2)/2 +1⌋ * ⌊(32-2)/2 +1⌋ * 16=16*16*16

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

l8947943

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值