0
0
Computer Visionml~20 mins

Face recognition concept in Computer Vision - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Face Recognition Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does face recognition typically work?

Which step is not usually part of a face recognition system?

ATranslate faces into different languages
BDetect faces in an image
CExtract features from detected faces
DCompare extracted features to known faces
Attempts:
2 left
💡 Hint

Think about what face recognition systems do with faces, not unrelated tasks.

Model Choice
intermediate
2:00remaining
Choosing a model for face recognition

Which model type is best suited for extracting meaningful features from face images?

AK-Means Clustering
BRecurrent Neural Network (RNN)
CLinear Regression
DConvolutional Neural Network (CNN)
Attempts:
2 left
💡 Hint

Consider which model type is good at processing images.

Metrics
advanced
2:00remaining
Evaluating face recognition accuracy

Which metric best measures how well a face recognition system correctly identifies known faces?

ABLEU Score
BMean Squared Error
CAccuracy
DSilhouette Score
Attempts:
2 left
💡 Hint

Think about a metric that measures correct predictions in classification.

🔧 Debug
advanced
2:00remaining
Troubleshooting face recognition model training

After training a face recognition model, the training accuracy is very high but test accuracy is very low. What is the most likely cause?

AThe training data has too many classes
BThe model is overfitting the training data
CThe test data is corrupted
DThe model is underfitting the training data
Attempts:
2 left
💡 Hint

Think about what happens when a model learns training data too well but fails on new data.

Predict Output
expert
3:00remaining
Output of face embedding extraction code

What is the output shape of the face embedding vector extracted by this code?

Computer Vision
import numpy as np
from tensorflow.keras.applications.resnet50 import ResNet50, preprocess_input
from tensorflow.keras.preprocessing import image

model = ResNet50(weights='imagenet', include_top=False, pooling='avg')
img_path = 'face.jpg'
img = image.load_img(img_path, target_size=(224, 224))
x = image.img_to_array(img)
x = np.expand_dims(x, axis=0)
x = preprocess_input(x)
embedding = model.predict(x)
print(embedding.shape)
A(1, 2048)
B(224, 224, 3)
C(1, 1000)
D(7, 7, 2048)
Attempts:
2 left
💡 Hint

Pooling='avg' means the output is a vector, not a feature map.