What is Padding in Neural Network? - GeeksforGeeks
![](https://media.geeksforgeeks.org/wp-content/uploads/20220302180104/Group16.jpg)
A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
A computer science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.
As we know while building a neural network we are doing convolution to extract features with the help of kernels with respect to the current datasets which is the important part to make your network learn while convolving. For example, if you want to train your neural network to classify
![](https://d2o2utebsixu4k.cloudfront.net/media/images/blogs/share_image/60fa8395-170f-465a-901a-db5252a7d35e.png)
What is Padding in Convolutional Neural Networks (CNN)?
![](https://media.geeksforgeeks.org/wp-content/uploads/20231218174321/cnn-2-300x133.jpg)
Introduction to Convolution Neural Network - GeeksforGeeks
![](https://i.ytimg.com/vi/-1xVmU8Z6Bs/maxresdefault.jpg)
Padding in Convolutional Neural Network
![](https://www.researchgate.net/profile/Bijaya-Ghimire-3/publication/371227477/figure/fig1/AS:11431281164367903@1685708801741/EfficientDet-architecture-Source-M-Tan-etal-2020_Q320.jpg)
2: Image masking. Source
![](https://miro.medium.com/v2/resize:fit:1400/1*Flo86KWz2bQ_FQl3HZsqNw.jpeg)
CNN (Convolution Neural Network). Why CNN ?, by Tanuj Shrivastava, Analytics Vidhya
![](http://scientificresearch.in/wp-content/uploads/2022/10/image.png)
Dilated Convolution in Deep Learning
![](https://blog.paperspace.com/content/images/2022/07/paddingcnn.png)
Padding In Convolutional Neural Networks
![](https://miro.medium.com/v2/resize:fit:1400/1*R21aCTxF0nOo0D9_ax_bbw.png)
Convolutional Neural Networks (CNNs), by Halil İbrahim Hatun
![](https://blog.paperspace.com/content/images/2022/06/ones_padded.png)
Padding In Convolutional Neural Networks
![](https://media.geeksforgeeks.org/wp-content/uploads/20210212153139/normalvsdilatedconv-660x333.png)
Dilated Convolution - GeeksforGeeks
![](https://media.geeksforgeeks.org/wp-content/uploads/20231218174414/Screenshot-from-2017-08-15-17-04-02.png)
Introduction to Convolution Neural Network - GeeksforGeeks