January 2024 term · Deep Learning for Computer Vision · BSDA5006
Deep Learning for Computer Vision End Term: 28 April 2024 (January 2024 term)
The IIT Madras BS Deep Learning for Computer Vision (Deep Learning for Computer Vision) End Term paper sat on 28 Apr 2024, in the January 2024 term: 44 questions for 72 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.
Official paper: IIT M DEGREE AN EXAM QDB3 28 Apr 2024 · No negative marking.
Question 1
+2 marksOne correct option
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
What is the role of the Gaussian blur in the Canny edge detection algorithm, and how does the choice of the standard deviation parameter affect the performance of edge detection? Which option do you think best describes the role of the Gaussian blur and its relationship with the standard deviation parameter in the Canny edge detection algorithm?
A
The Gaussian blur helps to reduce noise in the image and smooth out pixel intensity variations. The standard deviation parameter controls the amount of blurring applied, with higher values resulting in more aggressive smoothing, which may lead to loss of edge detail.
B
The Gaussian blur enhances edge contrast in the image and amplifies pixel intensity gradients. The standard deviation parameter determines the width of the blur kernel, with larger values resulting in sharper edges and finer details preserved.
C
The Gaussian blur serves to highlight high-frequency components in the image and accentuate edge boundaries. The standard deviation parameter dictates the level of detail preserved, with smaller values preserving finer details but potentially amplifying noise.
D
The Gaussian blur functions to dilate edge regions in the image and expand the edge boundaries. The standard deviation parameter controls the extent of dilation, with higher values resulting in broader edge regions but also increasing the risk of false edge detections.
Show answerTap to reveal
Correct answer
A
The Gaussian blur helps to reduce noise in the image and smooth out pixel intensity variations. The standard deviation parameter controls the amount of blurring applied, with higher values resulting in more aggressive smoothing, which may lead to loss of edge detail.
How does pyramid matching differ from Speeded-Up Robust Features (SURF) in image matching?
A
Pyramid matching matches images at multiple resolutions using multi- resolution representations, while SURF focuses on detecting and describing local features invariant to scale and rotation.
B
SURF relies on gradient-based descriptors for feature matching, whereas pyramid matching utilizes histogram-based representations.
C
Pyramid matching is computationally more efficient compared to SURF, which requires extensive feature extraction and matching procedures.
D
SURF is more suitable for matching images with complex patterns and cluttered backgrounds, while pyramid matching excels in scenarios where multi-scale matching is critical, such as image registration across different resolutions.
Show answerTap to reveal
Correct answer
A
Pyramid matching matches images at multiple resolutions using multi- resolution representations, while SURF focuses on detecting and describing local features invariant to scale and rotation.
In the context of Convolutional Neural Networks (CNNs), what is the primary challenge associated with backpropagation compared to traditional feedforward neural networks?
A
The increased number of parameters and layers in CNNs make
backpropagation computationally intensive and prone to overfitting.
B
The presence of convolutional and pooling layers in CNNs requires the development of specialized backpropagation algorithms for efficient gradient computation.
C
The non-linear activation functions used in CNNs introduce discontinuities in the error surface, making it difficult to find the global minimum during backpropagation.
D
The spatial structure of CNNs results in weight sharing and local connectivity, requiring careful consideration of the error propagation process during backpropagation.
Show answerTap to reveal
Correct answer
D
The spatial structure of CNNs results in weight sharing and local connectivity, requiring careful consideration of the error propagation process during backpropagation.
Consider the following assertion and reason, and state which of them is true.
Assertion: ProgressiveGAN uses Minibatch Standard Deviation.
Reason: This value will be different if the generated images do not have the same diversity as the actual images, and the discriminator will penalize it as a result.
A
Both Assertion and Reason are True; Reason is a correct explanation of the Assertion
B
Both Assertion and Reason are True; but Reason is not a correct explanation of the Assertion
C
Assertion is True; Reason is False
D
Assertion is False by itself
Show answerTap to reveal
Correct answer
A
Both Assertion and Reason are True; Reason is a correct explanation of the Assertion
Consider a 3×3 grayscale image in terms of pixel intensities as shown in matrix form below.
9
1
6
3
3
2
3
5
3
Assume that each pixel takes values from 1 to 9 (inclusive). After performing histogram equalization, the number of pixels with intensity value 6 are __________?
Consider a Faster R-CNN object detection framework, which is being trained with a mini-batch size of 2. The RPN produces 512 proposals, out of which 10 and 12 of them are foreground proposals, corresponding to each image in the mini-batch. For a single mini-batch update, the bounding box regression loss will be computed _____________ times.
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
Calculate the query, key, and value to calculate z1. Consider only the first word for calculating the scores; remember that attention output is calculated by a weighted sum of all value vectors. Also, the key vector dimension dk = 3
Based on the above data, answer the given subquestions.
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
First element of attention vector is __________________
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
Calculate the query, key, and value to calculate z1. Consider only the first word for calculating the scores; remember that attention output is calculated by a weighted sum of all value vectors. Also, the key vector dimension dk = 3
Based on the above data, answer the given subquestions.
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
Second element of attention vector is _____________
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
Calculate the query, key, and value to calculate z1. Consider only the first word for calculating the scores; remember that attention output is calculated by a weighted sum of all value vectors. Also, the key vector dimension dk = 3
Based on the above data, answer the given subquestions.
Given word embeddings for two words and weight matrix to generate queries, keys and values as below (in practice, these would be more complex or learned; for simplicity, we provide them here):
Third element of attention vector is _________________
In vision transformers, if treat each pixel as a token for an image of size 64 × 64 × 3, the number of parameters required for the self-attention calculation are ________blank(a)________ . What will be the number of parameters if consider patches of size 8 × 8 × 3 ________blank(b)________. Based on the above data, answer the given subquestions.
In vision transformers, if treat each pixel as a token for an image of size 64 × 64 × 3, the number of parameters required for the self-attention calculation are ________blank(a)________ . What will be the number of parameters if consider patches of size 8 × 8 × 3 ________blank(b)________. Based on the above data, answer the given subquestions.