Neural networks for computer vision Flashcards

1
Q

How we can use neural nets for computer vision? ‍⭐️

A

Neural nets used in the area of computer vision are generally Convolutional Neural Networks(CNN’s). You can learn about convolutions below. It appears that convolutions are quite powerful when it comes to working with images and videos due to their ability to extract and learn complex features. Thus CNN’s are a go-to method for any problem in computer vision.

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

What’s a convolutional layer? ‍⭐️

A

The idea of the convolutional layer is the assumption that the information needed for making a decision often is spatially close and thus, it only takes the weighted sum over nearby inputs. It also assumes that the networks’ kernels can be reused for all nodes, hence the number of weights can be drastically reduced. To counteract only one feature being learnt per layer, multiple kernels are applied to the input which creates parallel channels in the output. Consecutive layers can also be stacked to allow the network to find more high-level features.

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

Why do we actually need convolutions? Can’t we use fully-connected layers for that? ‍⭐️

A

A fully-connected layer needs one weight per inter-layer connection, which means the number of weights which needs to be computed quickly balloons as the number of layers and nodes per layer is increased.

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

What’s pooling in CNN? Why do we need it? ‍⭐️

A

Pooling is a technique to downsample the feature map. It allows layers which receive relatively undistorted versions of the input to learn low level features such as lines, while layers deeper in the model can learn more abstract features such as texture.

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

How does max pooling work? Are there other pooling techniques? ‍⭐️

A

Max pooling is a technique where the maximum value of a receptive field is passed on in the next feature map. The most commonly used receptive field is 2 x 2 with a stride of 2, which means the feature map is downsampled from N x N to N/2 x N/2. Receptive fields larger than 3 x 3 are rarely employed as too much information is lost.

Other pooling techniques include:

Average pooling, the output is the average value of the receptive field.
Min pooling, the output is the minimum value of the receptive field.
Global pooling, where the receptive field is set to be equal to the input size, this means the output is equal to a scalar and can be used to reduce the dimensionality of the feature map.

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

Are CNNs resistant to rotations? What happens to the predictions of a CNN if an image is rotated? 🚀

A

CNNs are not resistant to rotation by design. However, we can make our models resistant by augmenting our datasets with different rotations of the raw data. The predictions of a CNN will change if an image is rotated and we did not augment our dataset accordingly. A demonstration of this occurence can be seen in this video, where a CNN changes its predicted class between a duck and a rabbit based on the rotation of the image.

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

What are augmentations? Why do we need them? 👶

A

Augmentations are an artifical way of expanding the existing datasets by performing some transformations, color shifts or many other things on the data. It helps in diversifying the data and even increasing the data when there is scarcity of data for a model to train on.

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

What kind of augmentations do you know? 👶

A

There are many kinds of augmentations which can be used according to the type of data you are working on some of which are geometric and numerical transformation, PCA, cropping, padding, shifting, noise injection etc.

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

How to choose which augmentations to use? ‍⭐️

A

Augmentations really depend on the type of output classes and the features you want your model to learn. For eg. if you have mostly properly illuminated images in your dataset and want your model to predict poorly illuminated images too, you can apply channel shifting on your data and include the resultant images in your dataset for better results.

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

What kind of CNN architectures for classification do you know? 🚀

A

Image Classification

Inception v3
Xception
DenseNet
AlexNet
VGG16
ResNet
SqueezeNet
EfficientNet
MobileNet
The last three are designed so they use smaller number of parameters which is helpful for edge AI.

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

What is transfer learning? How does it work? ‍⭐️

A

Given a source domain D_S and learning task T_S, a target domain D_T and learning task T_T, transfer learning aims to help improve the learning of the target predictive function f_T in D_T using the knowledge in D_S and T_S, where D_S ≠ D_T,or T_S ≠ T_T. In other words, transfer learning enables to reuse knowledge coming from other domains or learning tasks.

In the context of CNNs, we can use networks that were pre-trained on popular datasets such as ImageNet. We then can use the weights of the layers that learn to represent features and combine them with a new set of layers that learns to map the feature representations to the given classes. Two popular strategies are either to freeze the layers that learn the feature representations completely, or to give them a smaller learning rate.

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

What is object detection? Do you know any architectures for that? 🚀

A

Object detection is finding Bounding Boxes around objects in an image. Architectures : YOLO, Faster RCNN, Center Net

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

What is object segmentation? Do you know any architectures for that? 🚀

A

Object Segmentation is predicting masks. It does not differentiate objects. Architectures : Mask RCNN, UNet

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