0
0
Computer Visionml~20 mins

Pre-trained detection models in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Pre-trained Detection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Pre-trained Detection Models

What is the main advantage of using a pre-trained object detection model instead of training one from scratch?

AIt requires less labeled data and less training time to achieve good accuracy.
BIt guarantees perfect accuracy on any new dataset without further training.
CIt eliminates the need for any data preprocessing before inference.
DIt only works for detecting objects in black and white images.
Attempts:
2 left
💡 Hint

Think about the resources needed to train a model from zero versus using a model already trained on a large dataset.

Predict Output
intermediate
2:00remaining
Output of Pre-trained Model Inference Code

What is the output of this Python code snippet using a pre-trained detection model from torchvision?

Computer Vision
import torch
from torchvision.models.detection import fasterrcnn_resnet50_fpn
model = fasterrcnn_resnet50_fpn(pretrained=True)
model.eval()

# Dummy input: batch of 1 image with 3 channels, 224x224 pixels
input_tensor = torch.randn(1, 3, 224, 224)
outputs = model(input_tensor)
print(type(outputs))
A<class 'dict'>
B<class 'tuple'>
C<class 'torch.Tensor'>
D<class 'list'>
Attempts:
2 left
💡 Hint

Check the documentation for torchvision detection models' output format.

Model Choice
advanced
2:00remaining
Choosing a Pre-trained Detection Model for Real-Time Use

You want to deploy an object detection model on a mobile device with limited computing power and need real-time performance. Which pre-trained model is the best choice?

AFaster R-CNN with ResNet-50 backbone
BYOLOv5 Nano version
CMask R-CNN with ResNet-101 backbone
DRetinaNet with ResNet-152 backbone
Attempts:
2 left
💡 Hint

Consider model size and speed for mobile deployment.

Hyperparameter
advanced
1:30remaining
Adjusting Confidence Threshold in Pre-trained Detection Models

When using a pre-trained detection model, what is the effect of increasing the confidence threshold parameter during inference?

AThe model retrains itself to improve accuracy automatically.
BMore detected objects are shown, including many false positives.
CFewer detected objects are shown, but with higher confidence in each detection.
DThe input image resolution is increased to improve detection quality.
Attempts:
2 left
💡 Hint

Think about filtering detections based on how sure the model is.

Metrics
expert
2:00remaining
Evaluating Pre-trained Detection Model Performance

You evaluate a pre-trained object detection model on a test set and get these results: precision = 0.75, recall = 0.60. What does this tell you about the model's detections?

AThe model is good at avoiding false alarms but misses many true objects.
BThe model detects most true objects but has many false alarms.
CThe model has perfect detection with no errors.
DThe model's predictions are random and unreliable.
Attempts:
2 left
💡 Hint

Recall measures how many true objects are found; precision measures how many detections are correct.