Image size after convolusion:

    $frac{n-k+2p}{s}+1$

where n is the width (or height) of the image,

      k is the kernel size,

      p is the padding,

      s is the stride.

上面公式简写为:

图像经过卷积后的尺寸计算公式

 

Image size after pooling:

    $frac{n-f}{s}+1$

where n is the width (or height) of the image,

     f is the pooling size,

     s is the stride.