Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/main/deep-learning-specialization/course-4-convolutional-neural-network/Week 1 Quiz - The Basics of ConvNets.md
Views: 34199
Week 1 Quiz - The Basics of ConvNets
1. What do you think applying this filter to a grayscale image will do?
Detect vertical edges.
Detect 45-degree edges.
Detecting image contrast.
Detect horizontal edges.
📌 Notice that there is a high delta between the values in the top left part and the ones in the bottom right part. When convolving this filter on a grayscale image, the edges forming a 45-degree angle with the horizontal will be detected.
2. Suppose your input is a 128 by 128 grayscale image, and you are not using a convolutional network. If the first hidden layer has 256 neurons, each one fully connected to the input, how many parameters does this hidden layer have (including the bias parameters)?
4194304
12583168
12582912
4194560
3. Suppose your input is a 300 by 300 color (RGB) image, and you use a convolutional layer with 100 filters that are each 5x5. How many parameters does this hidden layer have (including the bias parameters)?
2501
7600
7500
2600
📌 you have weights and bias per filter. Given that you have 100 filters, you get 7,600 parameters for this layer.
4. You have an input volume that is , and convolve it with 32 filters of , using a stride of 2 and no padding. What is the output volume?
📌 Using the formula with we get 62.
5. You have an input volume that is , and pad it using “pad=1”. What is the dimension of the resulting volume (after padding)?
📌 If the padding is 1 you add 2 to the height dimension and 2 to the width dimension.
6. You have a volume that is , and convolve it with 32 filters of , and a stride of 1. You want to use a "same" convolution. What is the padding?
2
3
5
0
📌 When using a padding of 2 the output volume has .
7. You have an input volume that is , and apply max pooling with a stride of 4 and a filter size of 4. What is the output volume?
📌 Using the formula with and .
8. Because pooling layers do not have parameters, they do not affect the backpropagation (derivatives) calculation.
True
False
📌 Everything that influences the loss should appear in the backpropagation because we are computing derivatives. In fact, pooling layers modify the input by choosing one value out of several values in their input volume. Also, to compute derivatives for the layers that have parameters (Convolutions, Fully-Connected), we still need to backpropagate the gradient through the Pooling layers.
9. Which of the following are true about convolutional layers? (Check all that apply)
It allows parameters learned for one task to be shared even for a different task (transfer learning).
It speeds up the training since we don't need to compute the gradient for convolutional layers.
Convolutional layers provide sparsity of connections.
📌 This happens since the next activation layer depends only on a small number of activations from the previous layer.
It allows a feature detector to be used in multiple locations throughout the whole input volume.
📌 Since convolution involves sliding the filter throughout the whole input volume the feature detector is computed over all the volume.
10. The following image depicts the result of a convolution at the right when using a stride of 1 and the filter is shown right next.
On which pixels does the circled pixel of the activation at the right depend?
It depends on the pixels enclosed by the green square.
...
📌 this is the position of the filter when we move it two pixels down and one to the right.