计算卷积层中的输出大小 [英] Calculate the Output size in Convolution layer

查看:403
本文介绍了计算卷积层中的输出大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果神经网络卷积层的输入是大小为128X128X3的图像并对其应用40个大小为5X5的过滤器,输出大小将是什么?

What will be the output size, if the input to convolution layer of neural network is an image of size 128X128X3 and 40 filters of size 5X5 are applied to it?

推荐答案

您可以使用此公式[(W−K+2P)/S]+1.

  • W是输入音量-在您的情况下为128
  • K是内核大小-在您的情况下为5
  • P是填充-我相信您的情况是0
  • S是大步前进-您尚未提供.

因此,我们输入公式:

Output_Shape = (128-5+0)/1+1

Output_Shape = (124,124,40)

注意:如果未提供,步幅默认为1,并且(124, 124, 40)中的40是用户提供的过滤器数量.

NOTE: Stride defaults to 1 if not provided and the 40 in (124, 124, 40) is the number of filters provided by the user.

这篇关于计算卷积层中的输出大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆