BEAUTY MOMENT SYNTHESIS
NGA VU, PHUC NGUYEN, THINH TRAN – CAPSTONE PROJECT LHP.DL4AI.02.2022
SPECIAL THANKS TO OUR ADVISOR/MENTOR: MR. TIEP NGUYEN – PHD, LECTURER AT UIT VNU-HCM AND VIETAI
IN THIS PRESENTATIONS
PROJECT INTRODUCTION
PROJECT TIMELINE
March 2022
Project brainstorm and reproduce different modules
April 2022
Combines modules
May 2022
Optimizations and evaluations
June 2022
Products demo and presentation
Future work
More optimizations
More features
OVERALL BASELINE
Face recognition from targets in anchor folder
Face image quality assessment (FIQA) from the extracted bounding boxes from face recognition modules
Synthesize the qualified images into video with transitions and animations
Smile score: evaluate and determine if the targets are smiling
01
03
02
04
Anchor
Image Set
DETAILED BASELINE
FACE DETECTION
ANCHOR IMAGES OF 6 PEOPLE
INPUT IMAGES
FACE RECOGNITION
CROPPED FACES
FACE ALIGNMENT
KNN
PRETRAINED MODEL
Bounding boxes with id
Filter disqualified bounding boxes
Ranking images based on smile scores
Quality scores
Smile scores
Video synthesis
DATASET
OUR PRIVATE DATASET (PROVIDED BY MR. TIEP NGUYEN)
Sample images from the Image Set
Sample images from the Anchor Set
OUR DATASET STRUCTURE
→ Inside the input folder, you can have as many as sub-folders - it does not matter, as we are using recursion in order to read all images inside your input directory. The same rule applies in the anchor set.
MODULE 1: FACE DETECTION AND RECOGNITION
Face Alignment Examples
Face Recognition Examples
Vũ Hải Quân
Võ Văn Khang
Vũ Hải Quân
When Face Recognition module goes wrong
MODULE 2: FACE IMAGE QUALITY ASSESSMENT
MODULE 2: FACE IMAGE QUALITY ASSESSMENT
Link to paper: https://arxiv.org/pdf/2103.05977.pdf - SDD-FIQA (CVPR-2021)
| Precision | Recall | F1-score | Support |
Good | 0.38 | 0.59 | 0.46 | 96 |
Bad | 0.78 | 0.59 | 0.67 | 232 |
Accuracy | | | 0.59 | 328 |
Macro avg | 0.58 | 0.59 | 0.57 | 328 |
Weighted avg | 0.66 | 0.59 | 0.61 | 328 |
SDD-FIQA classification report on our data set
HOW SDD-FIQA CREATE FACE IMAGES’ QUALITY SCORE?
41.908226
35.694916
44.77323
HOW DIFFERENT SITUATION AFFECTS FIQA SCORES?
45.356842
0.0349
1.2805
42.950836
HOW DIFFERENT SITUATION AFFECTS FIQA SCORES?
41.908226
28.20411
41.72763
32.48454
31.134018
27.354168
32.721783
32.721783
HOW DIFFERENT SITUATION AFFECTS FIQA SCORES?
35.25
33.97
43.53
34.15
44.27
28.98
46.19
30.00
HOW DIFFERENT SITUATION AFFECTS FIQA SCORES?
39.73
33.02
43.53
43.32
43.00
21.51
45.67
MODULE 3: SMILE SCORE ASSESSMENT
Overview of the dataset Fer2013
Angry
Disgust
Fear
Happy
Neutral
sad
Surprise
HOW DEEPFACE CREATE FACE IMAGES’ SMILE SCORE?
0.607
97.07
17.07
Deepface architecture
MODULE 4: VIDEO SYNTHESIS
TRANSITIONS
ANIMATIONS
Cover animation
Comb animation
Push animation
Uncover animation
Split animation
Fade animation
Zoom animation
Rotate animation
are coded from scratch and randomly selected into the final video.
MODULE 4: VIDEO SYNTHESIS
PROBLEMS AND SOLUTIONS
PROBLEMS
SOLUTIONS
MORE ON OUR SOLUTION:
OUR BASELINE
SMALLER VIDEO FILES
CONCATENATE
FINAL VIDEO
DELETE TEMPORARY FILES
PROBLEMS AND SOLUTIONS
PROBLEMS
SOLUTIONS
our algorithm
FINAL PRODUCT
These are the best moments of Mr. Vu Hai Quan throughout more than 600 images from our image set.
Bounding boxes are annotated for debugging purposes.
FUTURE DEVELOPMENTS
WHAT WE HAVE DONE
OUR PLANS FOR THE FUTURE