CNN Flashcards

1
Q

What should be the padding to retain ‘same’ size of Convolution? Size is N and filter is F

A

P = (F-1)/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

With NxN image, filter of size F, padding P, stride S, what is output size?

A

(N + 2P - F)/S + 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is difference between Cross-Correlation and Convolution

A

When we apply filter in CNN, it is called ‘Cross Correlation’ in maths. Convolution is Math is Flipping the filter horizontally and vertically.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If we have 10 filters with size=3 and channels=3, how many parameters in that layer

A

(333 + 1) * 10 = 280

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why are CNNs less prone to over-fitting

A

Whatever be the size of image, the number of features can be quite limited (based on filter size and number of filters)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does max pooling achieve?

A

Preserves a feature found in a pool, and ignores the rest

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

As we go deeper in a network, Height and Width _______ and number of layers________

A

Height and Width decrease and number of layers increase

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Lenet-5 Network: Describe size of each layer - (Conv->Pool->Conv->Pool->FC->FC), starting with 32X32X1

A

Check notes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many total parameters in Lenet-5?

A

60K

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Resnet?

A

Activation from Layer l is added to Z(l +n) (before the activtion)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a CNN (vs Resnet), as the number of layers increase, the training error keeps on decreasing. True/False

A

False. It comes down and then goes up as number of layers increase. But in a Resnet, it keeps decreasing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a ‘network in network’ convolution?

A

It is a 1X1 filter with n_c channels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you shrink number of channels?

A

Using 1X1 filter with lesser channels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a Bottleneck Layer in Inception?

A

It is the 1X1 layer used to reduce the computational cost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly