Question 1
Choose the correct matching:

The IIT Madras BS Deep Learning for Computer Vision (Deep Learning for Computer Vision) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDB1: 52 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.
Choose the correct matching:
Correct answer
1→ iii, 2→ iv, 3→ i, 4 → ii
1→ iii, 2→ i, 3 → ii, 4 → v
1→ iii, 2→ iv, 3→ v, 4 → ii
1→ iv, 2→ iii, 3→ i, 4 → ii
Correct answer
1→ iii, 2→ iv, 3→ v, 4 → ii
Identify the correct sequence of steps in a Canny edge detection pipeline. Steps are listed below: 1. Compute gradient magnitude and direction
2. Connect individual components
3. Smoothen the image
4. Threshold into strong, weak, or no edge
5. Gaussian Filter and Hysteresis
6. Non-maximum suppression
7. Apply derivative to get edges
6→ 1→ 4→ 5 → 2
3→ 1→ 6→ 4 → 2
3→ 5→ 1→ 4 → 2
6→ 3→ 5→ 7 → 2
Correct answer
3→ 1→ 6→ 4 → 2
Only statement P is true
Only statement Q is true
Both statements are true
None of these statements is true
Correct answer
Only statement P is true
Match the derivative of activation functions with their counterparts on the right column accordingly.
| 1) Leaky ReLU | i) |
|---|---|
| 2) Tanh | ii) 0 if and 1 if |
| 3) ReLU | iii) |
| 4) Sigmoid | iv) 0.01 if and 1 if |
| v) 0 if and 1 if | |
| vi) 0.01 if and 1 if |
1→ vi, 2→ iii, 3 →v, 4 → i
1→ i, 2→ iv, 3 → iii, 4→ ii
1→ i, 2→ v, 3 → iii, 4→ iv
1→ iv, 2→ iii, 3→ ii, 4 → i
Correct answer
1→ iv, 2→ iii, 3→ ii, 4 → i
Which of the following is the correct sequence of steps of the SIFT algorithm?
1. Using the Taylor series expansion of the scale-space function, lo-calize the key points. 2. Estimate the orientation of keypoints using the local image gra-dients.
3. Find the edge points using the eigenvalues of the Hessian and reject these points.
4. Find a raw SIFT descriptor vector using the gradient orientations of the neighborhood around the key points.
5. Detect extreme points in scale space using an approximation of the Laplacian of Gaussian.
5, 2, 1, 3, 4
5, 1, 3, 2, 4
1, 3, 2, 4, 5
1, 5, 3, 2, 4
Correct answer
5, 1, 3, 2, 4
Sigmoid of alignment scores
ReLU of alignment scores
Softmax of alignment scores
Linear projections of alignment scores
Correct answer
Softmax of alignment scores
Which one of the following statements is true?
Attention mechanisms cannot be applied to the bidirectional RNN model
An image captioning network cannot be trained end-to-end even though we are using 2 different modalities to train the network
One of the key components in the vanilla transformer are the recurrent connections that help them to deal with variable input length.
None of these
Correct answer
None of these
Correct answer
Which one of the following statements regarding hyperparameter tuning is false?
Validation set is the best choice for tuning hyperparameters
Picking hyperparameters that perform the best on the training set leads to overfitting
Tuning hyperparameters on the test set is an acceptable approach to find the most powerful model for generalization performance
Test set performance, with hyperparameters tuned on the validation set, would be a realistic measure of how the model will generalize to new data.
Correct answer
Tuning hyperparameters on the test set is an acceptable approach to find the most powerful model for generalization performance
Correct answer
1→ iii, 2→ iv, 3→ ii, 4 → i
1→ i, 2→ iv, 3 → iii, 4→ ii
1→ iv, 2→ iii, 3→ ii, 4 → i
1→ iii, 2→ i, 3 → ii, 4 →v
Correct answer
1→ iii, 2→ i, 3 → ii, 4 →v
1→ iv, 2→ v, 3→ i, 4 → ii
1→ iii, 2→ i, 3 → v, 4→ ii
1→ iv, 2→ iii, 3→ ii, 4 → i
1→ iii, 2→ i, 3 → ii, 4→ v
Correct answer
1→ iv, 2→ v, 3→ i, 4 → ii
What makes the Segment Anything Model (SAM) particularly advantageous for image annotation tasks compared to conventional segmentation approaches?
It has perfect segmentation accuracy
It has minimal hardware requirements for operation
It can generalize to segment objects it wasn’t specifically trained on
It automatically identifies and labels all objects in an image without user prompts
Correct answer
It can generalize to segment objects it wasn’t specifically trained on
Statement 1: The Segment Anything Model (SAM) demonstrates zero-shot generalization capabilities across various downstream tasks.
Statement 2: SAM’s training involves a largescale, diverse mask dataset using a prompt-based segmentation approach. Which one of the following options is most appropriate?
Both statements are correct, and Statement 2 correctly explains Statement 1.
Both statements are correct, but Statement 2 does not correctly explain Statement 1.
Statement 1 is correct, but Statement 2 is incorrect.
Statement 1 is incorrect, but Statement 2 is correct.
Both statements are incorrect.
Correct answer
Both statements are correct, and Statement 2 correctly explains Statement 1.
Why does DETR typically exhibit poor performance in detecting small objects compared to larger ones?
The CNN backbone used in DETR has a fixed receptive field that’s too large for small objects
The global self-attention mechanism in DETR tends to dilute the signal from small objects across all image locations
DETR’s loss function actively discards all detections smaller than 50x50 pixels
The object queries in DETR are programmed to ignore any object smaller than 10
DETR’s encoder-decoder architecture was specifically designed to only detect large objects
Correct answer
The global self-attention mechanism in DETR tends to dilute the signal from small objects across all image locations
Which of the following statements are false? (Select all that apply)
Generative adversarial networks (GANs) generate sharper images compared to Variational AutoEncoders (VAE)
GAN is an example of an implicit density estimation model
Fully connected layers in mapping network of Style-GAN do not change the dimension of its input
The generator and discriminator are always trained together in a GAN
Correct answers
Fully connected layers in mapping network of Style-GAN do not change the dimension of its input
The generator and discriminator are always trained together in a GAN
Which of the following statements are true? (Select all possible correct options)
Autoencoder are equivalent to Principal Component Analysis (PCA) provided we don’t use of non-linear activation functions
When using global attention on temporal data, alignment weights are learnt for encoder hidden representations for all time steps
Positional encoding is an important component of the transformer architecture as it conveys information about order in a given sequence
It is not possible to generate different captions for the same image that have similar meaning but different tone/style
Autoencoders can not be used for data compression as its input and output dimensions are different
Correct answers
Autoencoder are equivalent to Principal Component Analysis (PCA) provided we don’t use of non-linear activation functions
When using global attention on temporal data, alignment weights are learnt for encoder hidden representations for all time steps
Positional encoding is an important component of the transformer architecture as it conveys information about order in a given sequence
Which of the following statements about CLIP are TRUE? (Select ALL that apply)
CLIP uses a contrastive loss function to align text and image embeddings.
CLIP requires image labels for training.
CLIP is trained to maximize cosine similarity between embeddings of matching text-image pairs.
CLIP model is trained with pretext tasks such as rotation prediction and inpainting to learn effective feature representations.
To use the CLIP model for image classification, it is imperative to finetune it on downstream datasets.
Correct answers
CLIP uses a contrastive loss function to align text and image embeddings.
CLIP is trained to maximize cosine similarity between embeddings of matching text-image pairs.
Which one of the following statements is true:
Weight change criterion is a method of ‘early stopping’ that checks whether or not the error is dropping over epochs to decide whether to continue training or stop.
L1 norm tends to create more sparse weights than L2 norm.
During the training phase, for each iteration, Dropout ignores a random fraction, p, of nodes, and accounts for it in the test phase by scaling down the activations by a factor of p.
A single McCulloch-Pitts neuron is capable of modeling AND, OR, XOR, NOR, and NAND functions.
Correct answers
L1 norm tends to create more sparse weights than L2 norm.
During the training phase, for each iteration, Dropout ignores a random fraction, p, of nodes, and accounts for it in the test phase by scaling down the activations by a factor of p.
Which of the following are examples of a high-pass filter?
Correct answers
Which of the following statements are true? (Select all that apply)
Correct answers
Which of the following techniques help control the exploding or vanishing gradient problem in recurrent neural networks?
Gradient clipping
Use ReLU activation funtion to control exploding gradient and sigmoid activation to control vanishing gradients
Use Long Short-Term Memory (LSTM)
Use data augmentation methods (for example, reversing the input sequence)
Correct answers
Gradient clipping
Use Long Short-Term Memory (LSTM)
Use data augmentation methods (for example, reversing the input sequence)
Given is a 8-bit grayscale image:
What is the central element after applying linear contrast stretching? Linear contrast stretching is an image enhancement technique used to improve the contrast in an image. This is achieved by linearly scaling the pixel values so that they span a desired range (0 to 255 for an 8-bit grayscale image).
Correct answer: 0
Consider the grayscale image shown below as a matrix:
If a median filter with a neighborhood is applied to this image with a stride of 1 and no padding, what will be the value at position in the filtered image? (Assume that the top-left pixel coordinate of output image is addressed as )?
Correct answer: 30
Correct answer: -0.21 (accepted within ±0.005)
Correct answer: 45
Correct answer: 3.75
Correct answer: 100
Correct answer: -2
Correct answer: 5
Based on the above data, answer the given subquestions.
Element 1: _______________
Correct answer: 0.54
Based on the above data, answer the given subquestions.
Element 2: _______________
Correct answer: 0.25
Based on the above data, answer the given subquestions.
Element 3: _______________
Correct answer: 0.19
Based on the above data, answer the given subquestions.
Element 4: _______________
Correct answer: 0.58
A 4-dimensional input vector is passed to a hidden layer with a single neuron and an activation function to obtain . Assume that the corresponding weights (from input to hidden layer) are and bias is . If the activation function is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of ? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: .
Based on the above data, answer the given subquestions.
Sigmoid _______________
Correct answer: 0.95
A 4-dimensional input vector is passed to a hidden layer with a single neuron and an activation function to obtain . Assume that the corresponding weights (from input to hidden layer) are and bias is . If the activation function is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of ? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: .
Based on the above data, answer the given subquestions.
Linear _______________
Correct answer: 3
A 4-dimensional input vector is passed to a hidden layer with a single neuron and an activation function to obtain . Assume that the corresponding weights (from input to hidden layer) are and bias is . If the activation function is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of ? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: .
Based on the above data, answer the given subquestions.
Indicator Function _______________
Correct answer: 1
A 4-dimensional input vector is passed to a hidden layer with a single neuron and an activation function to obtain . Assume that the corresponding weights (from input to hidden layer) are and bias is . If the activation function is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of ? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: .
Based on the above data, answer the given subquestions.
Softplus _______________
Correct answer: 3.05
A 4-dimensional input vector is passed to a hidden layer with a single neuron and an activation function to obtain . Assume that the corresponding weights (from input to hidden layer) are and bias is . If the activation function is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of ? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: .
Based on the above data, answer the given subquestions.
ReLu _______________
Correct answer: 3
A 4-dimensional input vector is passed to a hidden layer with a single neuron and an activation function to obtain . Assume that the corresponding weights (from input to hidden layer) are and bias is . If the activation function is Sigmoid, Linear, Indicator function, Softplus, ReLU and Leaky- ReLU, what are the corresponding values of ? (Note that Indicator function returns 1 for a positive input, and 0 otherwise. Softplus is defined as: .
Based on the above data, answer the given subquestions.
Leaky-ReLu _______________
Correct answer: 3
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 1
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 5
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 11
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 7
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 8
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 4
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 10
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 9
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 3
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 2
Consider the BLIP model architecture with an input (image-text pair) as shown below: For each of the given entities, enter the appropriate number from the figure that corresponds to it:
Based on the above data, answer the given subquestions.
Correct answer: 6