Learn Before
Concept

Output Size of Strided and Padded Convolution

Input size =nh[l1]×nw[l1]= n_h^{[l-1]} \times n_w^{[l-1]} Kernel size =kh×kw= k_h \times k_w Stride size =sh×sw= s_h \times s_w Padding size =ph×pw= p_h \times p_w

Output size =nh[l]×nw[l]= n_h^{[l]} \times n_w^{[l]} nh[l]=nh[l1]+2ph[l]kh[l]sh[l]+1n_h^{[l]} = \left \lfloor{ \frac{n_h^{[l-1]} + 2p_h^{[l]} − k_h^{[l]}}{s_h^{[l]}}}\right \rfloor + 1 nw[l]=nw[l1]+2pw[l]kw[l]sw[l]+1n_w^{[l]} = \left \lfloor{ \frac{n_w^{[l-1]} + 2p_w^{[l]} − k_w^{[l]}}{s_w^{[l]}}}\right \rfloor + 1

0

3

Updated 2021-04-14

Tags

Data Science