Which step is not usually part of a face recognition system?
Think about what face recognition systems do with faces, not unrelated tasks.
Face recognition systems detect faces, extract features, and compare them. Translating faces into languages is unrelated.
Which model type is best suited for extracting meaningful features from face images?
Consider which model type is good at processing images.
CNNs are designed to process images and extract spatial features, making them ideal for face recognition.
Which metric best measures how well a face recognition system correctly identifies known faces?
Think about a metric that measures correct predictions in classification.
Accuracy measures the proportion of correct identifications, suitable for face recognition. MSE is for regression, BLEU for language, Silhouette for clustering.
After training a face recognition model, the training accuracy is very high but test accuracy is very low. What is the most likely cause?
Think about what happens when a model learns training data too well but fails on new data.
Overfitting means the model memorizes training data but does not generalize well to new data, causing low test accuracy.
What is the output shape of the face embedding vector extracted by this code?
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)
Pooling='avg' means the output is a vector, not a feature map.
ResNet50 with include_top=False and pooling='avg' outputs a 2048-length vector per image, shape (1, 2048).