Lightning AI Studios: Never set up a local environment again →

Log in or create a free Lightning.ai account to track your progress and access additional course materials  

Unit 7.2 How Convolutional Neural Networks Work

References

What we covered in this video lecture

The architecture design of (convolutional neural networks (CNNs) helps these models to take pixel locality into account, and it offers a certain degree of robustness towards image perturbations, translations, and rotations. In a sense, we can think of CNNs as a network consisting of convolutional layers for representation learning as well as fully connected (multilayer perceptron) layers as classifiers on top of the learned representations. Moreover, we also learned about how convolutional layers work in detail, including handling multiple input and output channels.

Log in or create a free Lightning.ai account to access:

  • Quizzes
  • Completion badges
  • Progress tracking
  • Additional downloadable content
  • Additional AI education resources
  • Notifications when new units are released
  • Free cloud computing credits

Quiz: 7.2 How Convolutional Neural Networks Work - Part 1

How many parameters does a 2×2 maxpooling layer have?

Incorrect. There are no parameters in maxpooling layers.

Correct. There are no parameters in maxpooling layers.

Incorrect. There are no parameters in maxpooling layers.

Incorrect. There are no parameters in maxpooling layers.

Please answer all questions to proceed.

Quiz: 7.2 How Convolutional Neural Networks Work - Part 2

Suppose we have a 3×3 filter that we slide over an 12×12 dimensional image (with one input and one output channel), how many weight parameters do we need for that kernel (/filter)?

Incorrect. Note that we reuse the same 3×3 filter in all parts of the image.

Correct. We reuse the same 3×3 filter in all parts of the image.

Incorrect. Note that we reuse the same 3×3 filter in all parts of the image.

Incorrect. Note that we reuse the same 3×3 filter in all parts of the image.

Please answer all questions to proceed.

Quiz: 7.2 How Convolutional Neural Networks Work - Part 3

How many bias units does a 3×3 convolutional kernel with 3 input and 5 output channels have?

Incorrect. There are definitely some bias values associated with the kernel.

Correct. There is 1 bias unit per output channel.

Incorrect. Hint: Implement the layer (nn = torch.nn.Conv2d(...)) and then use nn.bias instead of nn.weight.

Incorrect. That would be the number of weights.

Please answer all questions to proceed.

Quiz: 7.2 How Convolutional Neural Networks Work - Part 4

Suppose we want to apply a maxpooling layer to an image with 3 color channels (and we want 6 6 output channels in the feature map). How many channels does the maxpooling layer need?

Correct. Maxpooling does not have any channels.

Incorrect. Maxpooling does not have any channels.

Incorrect. Maxpooling does not have any channels.

Incorrect. Maxpooling does not have any channels.

Please answer all questions to proceed.

Quiz: 7.2 How Convolutional Neural Networks Work - Part 5

Suppose we use a 3×3 kernel on an image with 224 pixel height, a padding of 2, and a stride of 2. What’s the output height?

Incorrect. It is still possible to compute the height since it’s independent from the width.

Incorrect. But close, check the formula in the slides.

Incorrect. But close, check the formula in the slides.

Correct. [(224-3+2*2)/2] + 1 = 113.

Incorrect. If we have a stride > 1, then the output can never be as big as the input (given a reasonable padding amount).

Please answer all questions to proceed.
Watch Video 1

Unit 7.2

Videos