← Back to Tiny Hacks

Formula for calculating the output size of conv layer

O = (I - K + 2P)/S + 1

O = Output height x width

I = Input height x width

K = Kernel height x width

S = Stride