📚 Course contents

AI & Computer Vision, lesson 17 of 52

CNNs: How Convolutional Layers See

intermediate24 min readFull course

Introduction

The network from lesson 16 treats every pixel as a separate input, which falls apart on a real photo: too many weights, and it can't tell that a ball in the corner is the same as a ball in the middle. Convolutional neural networks (CNNs) fix both problems with one idea: slide a small filter over the picture. Today you'll do it by hand, in NumPy, and then peek inside a real network.

By the end of this lesson you'll be able to:

  • Explain convolution as sliding a small filter over an image
  • Say what a feature map is and why one filter finds one kind of pattern
  • Explain ReLU and max-pooling and what each one throws away
  • Describe why stacking layers lets a network go from edges to shapes to objects
  • Implement convolution, ReLU and pooling in NumPy and check them against OpenCV
  • Explain why a convolutional layer needs far fewer weights than a flat layer
  • Show the feature maps of a real network for a sports photo
CNNs: How Convolutional Layers See | Electronics Simplified