CNN Flashcards
What should be the padding to retain ‘same’ size of Convolution? Size is N and filter is F
P = (F-1)/2
With NxN image, filter of size F, padding P, stride S, what is output size?
(N + 2P - F)/S + 1
What is difference between Cross-Correlation and Convolution
When we apply filter in CNN, it is called ‘Cross Correlation’ in maths. Convolution is Math is Flipping the filter horizontally and vertically.
If we have 10 filters with size=3 and channels=3, how many parameters in that layer
(333 + 1) * 10 = 280
Why are CNNs less prone to over-fitting
Whatever be the size of image, the number of features can be quite limited (based on filter size and number of filters)
What does max pooling achieve?
Preserves a feature found in a pool, and ignores the rest
As we go deeper in a network, Height and Width _______ and number of layers________
Height and Width decrease and number of layers increase
Lenet-5 Network: Describe size of each layer - (Conv->Pool->Conv->Pool->FC->FC), starting with 32X32X1
Check notes
How many total parameters in Lenet-5?
60K
What is a Resnet?
Activation from Layer l is added to Z(l +n) (before the activtion)
In a CNN (vs Resnet), as the number of layers increase, the training error keeps on decreasing. True/False
False. It comes down and then goes up as number of layers increase. But in a Resnet, it keeps decreasing
What is a ‘network in network’ convolution?
It is a 1X1 filter with n_c channels
How do you shrink number of channels?
Using 1X1 filter with lesser channels
What is a Bottleneck Layer in Inception?
It is the 1X1 layer used to reduce the computational cost