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 questions below.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 3 names: [’helmet’, ’no_helmet’, ’person’]
A sample annotation in YOLO format is given below:
0 0.50 0.40 0.20 0.30
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Based on the above data, answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 3 names: [’helmet’, ’no_helmet’, ’person’]
A sample annotation in YOLO format is given below:
0 0.50 0.40 0.20 0.30
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Based on the above data, answer the given subquestions.
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 questions below.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 3 names: [’helmet’, ’no_helmet’, ’person’]
A sample annotation in YOLO format is given below:
0 0.50 0.40 0.20 0.30
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Based on the above data, answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 3 names: [’helmet’, ’no_helmet’, ’person’]
A sample annotation in YOLO format is given below:
0 0.50 0.40 0.20 0.30
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Based on the above data, answer the given subquestions.
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 questions below.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 3 names: [’helmet’, ’no_helmet’, ’person’]
A sample annotation in YOLO format is given below:
0 0.50 0.40 0.20 0.30
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Based on the above data, answer the given subquestions.
A dataset configuration file (YAML) is defined as:
path: /data/helmet_dataset train: images/train val: images/val nc: 3 names: [’helmet’, ’no_helmet’, ’person’]
A sample annotation in YOLO format is given below:
0 0.50 0.40 0.20 0.30
This represents: classid, xcenter, ycenter,width, height.
Assume the corresponding image has dimensions: 640 (width) × 480 (height).
Based on the above data, answer the given subquestions.
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 that processes an input image of size 64 × 64 × 3 through the following sequence of layers:
- A convolutional layer with 32 filters of size 3 × 3, stride = 1, and no padding.
- A second convolutional layer with 64 filters of size 3 × 3, stride = 2, and no padding.
- A flattening layer.
Calculate the total number of elements in the flattened output vector.
Consider a convolutional neural network that processes an input image of size 64 × 64 × 3 through the following sequence of layers:
- A convolutional layer with 32 filters of size 3 × 3, stride = 1, and no padding.
- A second convolutional layer with 64 filters of size 3 × 3, stride = 2, and no padding.
- A flattening layer.
Calculate the total number of elements in the flattened output vector.
Solution
Inscript
Consider a bottleneck layer in a deep CNN where an input feature map of size 14×14×512 is processed using a 1 × 1 convolutional layer with 128 filters.
Assuming each output activation requires a multiplication with each corresponding input channel value, compute the total number of multiplications required for this operation.
Provide your answer in millions (e.g., write 25.5 for 25,500,000).
Consider a bottleneck layer in a deep CNN where an input feature map of size 14×14×512 is processed using a 1 × 1 convolutional layer with 128 filters.
Assuming each output activation requires a multiplication with each corresponding input channel value, compute the total number of multiplications required for this operation.
Provide your answer in millions (e.g., write 25.5 for 25,500,000).
Solution
Inscript
A YOLO v1-style object detection model divides an input image into a grid of size S ×S, where S = 7. Each grid cell predicts B = 2 bounding boxes and the model is trained to detect C = 20 object classes.
Using the standard YOLO output formulation, calculate the total depth (number of channels) of the final output tensor.
A YOLO v1-style object detection model divides an input image into a grid of size S ×S, where S = 7. Each grid cell predicts B = 2 bounding boxes and the model is trained to detect C = 20 object classes.
Using the standard YOLO output formulation, calculate the total depth (number of channels) of the final output tensor.
Solution
Inscript
In a convolutional neural network, a convolutional layer receives an input feature map with 32 channels. The layer applies 64 filters, each of spatial size 3 × 3.
Assuming that each filter operates across all input channels and ignoring bias terms, calculate the total number of learnable weight parameters in this layer.
In a convolutional neural network, a convolutional layer receives an input feature map with 32 channels. The layer applies 64 filters, each of spatial size 3 × 3.
Assuming that each filter operates across all input channels and ignoring bias terms, calculate the total number of learnable weight parameters in this layer.
Solution
When fine-tuning large pre-trained vision models, several techniques are used to improve efficiency. Which of the following are valid strategies?
Solution
When working with PyTorch for training and deployment, proper handling of model state and
devices is critical. Which of the following practices are correct?
devices is critical. Which of the following practices are correct?
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
In training deep CNN models, different normalization and regularization techniques are used to stabilize training and improve generalization. Which of the following statements are correct?
Solution
U-Net is widely used for dense prediction tasks such as segmentation and depth estimation. Which architectural components contribute to its effectiveness?
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
The Inception (GoogLeNet) architecture was designed to improve computational efficiency while capturing multi-scale features. Which of the following statements correctly describe its design principles?
Solution
Convolutional Neural Networks (CNNs) differ significantly from fully connected neural networks. Which of the following mechanisms enable CNNs to efficiently process highdimensional image data?
Solution
Consider the following PyTorch code snippet:
conv = torch.nn.Conv2d(3, 32, kernel_size=3, padding=1) x = torch.randn(1,3,64,64) y = conv(x) print(y.shape)
Which of the following best explains the output shape?
conv = torch.nn.Conv2d(3, 32, kernel_size=3, padding=1) x = torch.randn(1,3,64,64) y = conv(x) print(y.shape)
Which of the following best explains the output shape?
Solution
Deep neural networks often suffer from degradation problems as depth increases. How do residual connections in ResNet help address this issue?
Solution
In YOLO-based object detection models, the confidence score predicted for each bounding box combines multiple factors.
What does this score represent?
What does this score represent?
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 image super-resolution models such as SRResNet, the Pixel Shuffle operation is often used for upsampling. What is the key advantage of this technique compared to naive interpolation methods?
Solution
In the Faster R-CNN architecture, anchors are predefined bounding boxes of different scales and aspect ratios. What is their primary role during training?
Solution
In modern CNN architectures such as VGG and ResNet, it is often observed that multiple stacked 3×3 convolutional layers are used instead of a single larger convolution (e.g., 7×7).
Which of the following best explains the technical advantage of this design choice?
Which of the following best explains the technical advantage of this design choice?
Solution
Shape
Thickness [ / ]
3
All colors