Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT "DEGREE LEVEL : DEEP LEARNING PRACTICE
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
(COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Comprehension Passage
Read the following configuration file and code snippet related to training and annotations in a YOLO model, and answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’]
A sample annotation in YOLO format is given below:
2 0.25 0.60 0.40 0.20
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’]
A sample annotation in YOLO format is given below:
2 0.25 0.60 0.40 0.20
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Inscript
Based on the YAML configuration file, what is the total number of object classes the model is trained to detect?
Based on the YAML configuration file, what is the total number of object classes the model is trained to detect?
Solution
Comprehension Passage
Read the following configuration file and code snippet related to training and annotations in a YOLO model, and answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’]
A sample annotation in YOLO format is given below:
2 0.25 0.60 0.40 0.20
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’]
A sample annotation in YOLO format is given below:
2 0.25 0.60 0.40 0.20
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Inscript
What is the x-coordinate (in pixels) of the center of the bounding box?
What is the x-coordinate (in pixels) of the center of the bounding box?
Solution
Comprehension Passage
Read the following configuration file and code snippet related to training and annotations in a YOLO model, and answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’]
A sample annotation in YOLO format is given below:
2 0.25 0.60 0.40 0.20
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 5 names: [’helmet’, ’no_helmet’, ’person’,’car’, ’truck’]
A sample annotation in YOLO format is given below:
2 0.25 0.60 0.40 0.20
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Inscript
What is the x-coordinate (in pixels) of the top-left corner of the bounding box?
What is the x-coordinate (in pixels) of the top-left corner of the bounding box?
Solution
Inscript
Consider a convolutional neural network with an input image of size 84 × 84 × 3. The architecture consists of the following layers:
1.A convolutional layer with 16 filters of size 4 × 4, a stride of 2, and no padding.
2. A ReLU activation layer.
3. A second convolutional layer with 32 filters of size 2×2, a stride of 2, and no padding.
4. A flattening layer.
What is the dimension of the resulting flattened layer?
Consider a convolutional neural network with an input image of size 84 × 84 × 3. The architecture consists of the following layers:
1.A convolutional layer with 16 filters of size 4 × 4, a stride of 2, and no padding.
2. A ReLU activation layer.
3. A second convolutional layer with 32 filters of size 2×2, a stride of 2, and no padding.
4. A flattening layer.
What is the dimension of the resulting flattened layer?
Solution
Inscript
A bottleneck layer in a ResNet receives an input feature map of dimensions 14×14×1024. We apply a 1×1 convolution layer with 256 filters to reduce dimensionality. Calculate the total number of multiplications required for this operation. (Give answer in millions, e.g., if 65,452,123, write
65.45).
A bottleneck layer in a ResNet receives an input feature map of dimensions 14×14×1024. We apply a 1×1 convolution layer with 256 filters to reduce dimensionality. Calculate the total number of multiplications required for this operation. (Give answer in millions, e.g., if 65,452,123, write
65.45).
Solution
Inscript
A modified YOLO-style architecture divides an image into a 13 × 13 grid (S = 13). If the model is designed to predict B = 3 bounding boxes per grid cell and is trained to recognize C = 80 distinct classes (similar to COCO dataset), what is the depth (number of channels) of the final output tensor?
A modified YOLO-style architecture divides an image into a 13 × 13 grid (S = 13). If the model is designed to predict B = 3 bounding boxes per grid cell and is trained to recognize C = 80 distinct classes (similar to COCO dataset), what is the depth (number of channels) of the final output tensor?
Solution
Inscript
In the VGG16 architecture, consider the second convolutional layer of the first block. It takes an input with 64 channels and applies 64 filters of size 3 × 3. Calculate the total number of weights (excluding bias) for this specific layer.
In the VGG16 architecture, consider the second convolutional layer of the first block. It takes an input with 64 channels and applies 64 filters of size 3 × 3. Calculate the total number of weights (excluding bias) for this specific layer.
Solution
When fine-tuning a large vision model (e.g., a pre-trained ResNet or Vision Transformer) for a specific competition dataset, which of the following techniques are most effective for improving training efficiency (speed and memory usage)?
Solution
When training a deep learning model for a vision competition (such as a ”Cat vs Dog” classifier or a YOLO detector), which of the following statements correctly describe the technical practices for managing hardware and model state?
Solution
Consider the following Python code snippet using the Ultralytics YOLOv8 API:
from ultralytics import YOLO model = YOLO("yolov8n.pt")
for name, module in model.model.named_modules():
print(name, type(module))
Based on the architecture of YOLOv8, which of the following statements correctly describe the model?
from ultralytics import YOLO model = YOLO("yolov8n.pt")
for name, module in model.model.named_modules():
print(name, type(module))
Based on the architecture of YOLOv8, which of the following statements correctly describe the model?
Solution
Which of the following loss components are typically used in SRGAN (Super-Resolution GAN) to achieve photo-realistic results?
Solution
Regarding the U-Net architecture, which is widely used for tasks like medical image segmentation and can be adapted for depth estimation:
Solution
Consider the following code:
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained=True) images = [torch.randn(3, 600, 800)] outputs = model(images)
Unlike YOLO-based models, the number of bounding boxes in outputs[0]['boxes'] varies for each image.
What architectural characteristic of the model explains this behavior?
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained=True) images = [torch.randn(3, 600, 800)] outputs = model(images)
Unlike YOLO-based models, the number of bounding boxes in outputs[0]['boxes'] varies for each image.
What architectural characteristic of the model explains this behavior?
Solution
Which of the following statements correctly describe the characteristics and motivations of the
Inception (GoogLeNet) architecture?
Inception (GoogLeNet) architecture?
Solution
In the context of Convolutional Neural Networks (CNNs), what is the primary mechanism that allows the network to handle inputs of varying spatial sizes while maintaining a fixed number of parameters, a characteristic that distinguishes them from standard Multi-Layer Perceptrons (MLPs)?
Solution
The first layer of the VGG16 model is a Conv2d with kernel = 3, stride = 1, padding = 1.
Consider the following Python code snippet using PyTorch and a pre-trained VGG16 model to process an input image:
import torch import torch.nn as nn from torchvision import models
model = models.vgg16(pretrained=True) feature_extractor = model.features[0]
input_image = torch.randn(1, 3, 224, 224) output = feature_extractor(input_image) print(output.shape)
What will be the shape of the output tensor printed by this code?
Consider the following Python code snippet using PyTorch and a pre-trained VGG16 model to process an input image:
import torch import torch.nn as nn from torchvision import models
model = models.vgg16(pretrained=True) feature_extractor = model.features[0]
input_image = torch.randn(1, 3, 224, 224) output = feature_extractor(input_image) print(output.shape)
What will be the shape of the output tensor printed by this code?
Solution
In the ResNet (Residual Network) architecture, 1 × 1 convolutions are frequently used in the ”bottleneck” building block. Beyond dimensionality reduction, what is an additional benefit of using these layers compared to a standard building block?
Solution
In the YOLO (You Only Look Once) framework, if multiple bounding boxes are predicted by a single grid cell for the same object, how does the algorithm determine which specific bounding box is responsible for that prediction during the training process?
It is observed that the number of bounding boxes printed varies for different input images.
Which of the following statements best explains this behavior?
It is observed that the number of bounding boxes printed varies for different input images.
Which of the following statements best explains this behavior?
Solution
Consider the following code snippet using a YOLO-based object detection model:
from ultralytics import YOLO
model = YOLO("yolov8n.pt") results = model("image.jpg") boxes = results[0].boxes.xyxy
print(boxes.shape)
It is observed that the number of bounding boxes printed varies for different input images.
Which of the following statements best explains this behavior?
from ultralytics import YOLO
model = YOLO("yolov8n.pt") results = model("image.jpg") boxes = results[0].boxes.xyxy
print(boxes.shape)
It is observed that the number of bounding boxes printed varies for different input images.
Which of the following statements best explains this behavior?
Solution
In the SRResNet and SRGAN architectures for image super-resolution, which specialized layer is used to upsample the feature maps by rearranging elements from the channel dimension into the spatial dimension?
Solution
In the Fast R-CNN architecture, which component is responsible for extracting a fixed-size feature
vector from a shared convolutional feature map for each region proposal?
vector from a shared convolutional feature map for each region proposal?
Solution
In the GoogLeNet (Inception v1) architecture, 1 × 1 convolutions (bottleneck layers) are applied before larger 3 × 3 and 5 × 5 convolutions. What is the primary motivation for including these 1 × 1 filters within an Inception module?
Solution
Shape
Thickness [ / ]
3
All colors