0
0
Computer Visionml~20 mins

DNN-based face detection in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Face Detection Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding the role of anchor boxes in DNN face detection

In deep neural network (DNN) based face detection, what is the primary purpose of anchor boxes?

ATo generate synthetic face images for training the model
BTo reduce the number of layers in the neural network for faster computation
CTo provide predefined bounding boxes at different scales and aspect ratios to help detect faces of various sizes
DTo normalize the input images before feeding them into the network
Attempts:
2 left
💡 Hint

Think about how the model predicts where faces might be in an image.

Predict Output
intermediate
2:00remaining
Output shape of the final layer in a face detection DNN

Consider a DNN face detector that outputs a tensor of shape (batch_size, 8732, 7). What does the number 7 represent in this output?

AIt represents 7 different classes of objects detected including faces
BIt represents 4 coordinates for bounding box, 2 for class scores, and 1 for confidence score
CIt represents 7 different face landmarks detected per box
DIt represents 4 coordinates for bounding box, 2 for class probabilities (face or background), and 1 for an objectness score
Attempts:
2 left
💡 Hint

Recall that face detection usually involves bounding box coordinates and classification between face and background.

Hyperparameter
advanced
2:00remaining
Choosing the right confidence threshold in face detection

In a DNN-based face detector, what is the effect of setting a very high confidence threshold for detected faces?

AIt reduces false positives but may increase false negatives by missing some faces
BIt increases both false positives and false negatives
CIt increases true positives but also increases false positives
DIt has no effect on detection results
Attempts:
2 left
💡 Hint

Think about what happens if the model only accepts very confident detections.

Metrics
advanced
2:00remaining
Evaluating face detection with Intersection over Union (IoU)

Which statement best describes how Intersection over Union (IoU) is used to evaluate face detection models?

AIoU is used to measure the confidence score of detected faces
BIoU measures the overlap between predicted and ground truth bounding boxes to determine if a detection is correct
CIoU calculates the pixel-wise difference between input images and detected faces
DIoU counts the total number of faces detected in an image
Attempts:
2 left
💡 Hint

Think about how to check if a predicted box matches the actual face location.

🔧 Debug
expert
3:00remaining
Debugging low face detection accuracy due to input preprocessing

A DNN face detection model trained on RGB images shows very low accuracy when tested on new images. The new images are loaded as grayscale and then converted to 3 channels by repeating the grayscale channel. What is the most likely cause of the low accuracy?

AThe model expects color features from RGB images, but repeated grayscale channels lack color information, causing poor detection
BThe model requires images to be in grayscale, so RGB input causes low accuracy
CGrayscale images have different pixel value ranges, causing normalization errors in the model
DRepeating grayscale channels increases image size, causing memory errors during inference
Attempts:
2 left
💡 Hint

Consider how color information affects feature extraction in CNNs.