1. Learn
  2. /
  3. Courses
  4. /
  5. Image Processing with Keras in Python

Exercise

Add padding to a CNN

Padding allows a convolutional layer to retain the resolution of the input into this layer. This is done by adding zeros around the edges of the input image, so that the convolution kernel can overlap with the pixels on the edge of the image.

Instructions

100 XP

Add a Conv2D layer and choose a padding such that the output has the same size as the input.