0
0
Computer Visionml~12 mins

Face recognition concept in Computer Vision - Model Pipeline Trace

Choose your learning style9 modes available
Model Pipeline - Face recognition concept

This pipeline identifies who a person is by looking at their face in a photo. It learns from many face pictures, then can recognize new faces by comparing features.

Data Flow - 5 Stages
1Input Image
1 image x 100 x 100 pixels x 3 color channelsReceive a color photo of a face1 image x 100 x 100 pixels x 3 color channels
Photo of a person’s face with RGB colors
2Face Detection
1 image x 100 x 100 x 3Find and crop the face area from the image1 image x 64 x 64 x 3
Cropped face region focusing on eyes, nose, mouth
3Feature Extraction
1 image x 64 x 64 x 3Convert face image into a list of numbers representing unique features1 vector x 128 features
[0.12, 0.45, 0.33, ..., 0.07] (128 numbers describing face)
4Face Embedding Comparison
1 vector x 128 featuresCompare extracted features to known faces in database1 vector x N known faces similarity scores
[0.98, 0.12, 0.45, ..., 0.05] (similarity scores)
5Identity Prediction
1 vector x N similarity scoresPick the known face with highest similarity score1 label (person’s name or unknown)
"Alice"
Training Trace - Epoch by Epoch
Loss
1.2 |****
0.9 |***
0.7 |**
0.5 |*
0.35| 
Epochs -> 1 2 3 4 5
EpochLoss ↓Accuracy ↑Observation
11.20.45Model starts learning basic face features
20.90.60Accuracy improves as model learns better features
30.70.72Model refines feature extraction
40.50.82Face embeddings become more distinct
50.350.90Model achieves good recognition accuracy
Prediction Trace - 5 Layers
Layer 1: Input Image
Layer 2: Face Detection
Layer 3: Feature Extraction
Layer 4: Face Embedding Comparison
Layer 5: Identity Prediction
Model Quiz - 3 Questions
Test your understanding
What does the feature extraction step do in face recognition?
ACrops the face from the photo
BTurns the face image into a list of numbers representing unique features
CCompares the face to known faces
DLabels the face with a name
Key Insight
Face recognition works by turning face images into unique number patterns, then matching these patterns to known faces. Training helps the model learn to make these patterns more distinct, improving accuracy.