Calculate the Output size in Convolution layer

前端 未结 5 1273
梦毁少年i
梦毁少年i 2020-12-05 05:25

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?

5条回答
  •  一个人的身影
    2020-12-05 05:43

    Formula : n[i]=(n[i-1]−f[i]+2p[i])/s[i]+1

    where,

    n[i-1]=128
    
    f[i]=5
    
    p[i]=0
    
    s[i]=1
    

    so,

    n[i]=(128-5+0)/1+1 =124

    so the size of the output layer is: 124x124x40 Where '40' is the number of filters

提交回复
热议问题