1. If we give an input matrix of size (30x30x64) to the flattened layer, what will be its size?
Why?:
The size of the flattened layer will be 303064 = 57600
2. Which of the following is not true for Convolutional Neural Networks?
A. CNNs are translation invariant.
B. CNNs increase the number of trainable parameters, making the training procedure more complex.
Why?:
Convolutional filters require less trainable parameters which gives CNNs a computational advantage.
3. Find the number of trainable parameters of a convolution layer if our input shape is (224,224,3) and we are using 10 filters of (3x3) filter size.
Number of Trainable Parameters
= (filter size x No. of channels + bias) x No. of filters
= (3 x 3 x 3 + 1) x 10
= 280
1. Which of the following options is correct for Convolutional Neural Networks?
Why?:
The correct flow of the layers in a CNN is:
Input Layer: Collects input images
Convolution Layer + Pooling: Build feature maps and extract important features from input images
Flatten: Creates a 1-D array of the output of its previous layer
Fully Connected Layer: Classifies/Predicts the output.
2. State whether the following statement is True or False.
We do not lose any information in the pooling layer.
Ans: False
Why?: We do lose information at the pooling layer, but it is only irrelevant information.
3. Which of the following tasks does not take place in the Fully Connected Layer?
Why?: In the fully-connected neural network, we use flattened outputs from the pooling layer to get the final predictions. Since this is nothing but a dense neural network, operations like weight modification and firing up neurons using activation functions occur. The FC layer does not have the capability of feature extraction.
1. Which of the following is the correct technique for normalization in CNN?
2. Consider the below code:
model.add(Conv2D(64, (3, 3), activation='relu', padding="same", input_shape=(x, y, z)))
Which of the following is correct for the above code?
Why?
input_shape denotes input image dimension of the data set. So if the data set has images of dimension 720x720 and have 3 channels, then x = 720 , y = 720 and z = 3
3. How many trainable parameters do we have in the pooling layers of a CNN?
Why?:
Pooling Layer has no trainable parameters, so the number of parameters is 0.