RECEPTIVE FIELD

Chapter 3

Stride, padding and dilation.

The kernel's weights decide what a convolution looks for. Three other settings decide where it looks, and how big the output comes out.

A convolution slides a small grid of numbers across an image. This chapter is about three settings that control that slide: how far it jumps each step, what happens at the image’s edges, and how spread out the grid is. Each one changes the size of the output. Getting that size right is most of the bookkeeping in designing a CNN, so the chapter takes the settings one module at a time and then puts them together into a single formula.

Quick recap

Chapter 2 covers these ideas in depth. Until it’s written, here is everything this chapter relies on.

The figures in this chapter use a blur kernel, a kernel whose nine weights are all 1/9. Its dot product adds nine pixels and divides by nine, so each output is the average of the nine pixels under the kernel. That makes the output map easy to read, because it’s just a softer copy of the input. Only the setting being discussed changes from figure to figure.

Modules

  1. 1Stride
  2. 2Padding
  3. 3Dilation
  4. 4Putting it together

Each module ends in a short knowledge check. Passing it unlocks the next module. Your progress is saved in this browser.

Start with Stride →