git clone https://github.com/wooks527/face_clustering.git
cd face_clustering
youtube-dl https://www.youtube.com/watch?v=bUQj7Ng7PCs
mv "I Ran - Pool Party Scene [La La Land _ 2016] - Movie Clip HD-bUQj7Ng7PCs.mkv" sample_video.mkv
python face_clustering.py --src-path sample_video.mkv \
--cps 1 \
--out-dir results/HOG-dlib-DBSCAN
Video Information:
- Resolution: 1920.0x1080.0, FPS: 29.0, CPS: 1
Detect Faces...
100%|██████████████████████████████████████████████████████████████████▋| 231/232 [05:10<00:01, 1.34s/it]
Start Encoding...
100%|████████████████████████████████████████████████████████████████████| 68/68 [00:04<00:00, 14.54it/s]
Start Clustering...
100%|████████████████████████████████████████████████████████████████████| 5/5 [00:02<00:00, 2.48it/s]
Sample Test (Video Link)
3ProTV Video (Video Link)
-
Face Detection
- face_recognition.face_locations -> Hog + Linear SVM
- cv2.CascadeClassifier -> Harr Cascade Classifier
- RetinaFace -> RetinaFace (Backbone: ResNet50, MobilNet)
- YOLOv5-Face -> YOLOv5-Face (YOLOv5n)
-
Face Recognition
- face_recognition.face_encodings -> dlib.face_recognition_model_v1
- DeepFace: ArcFace -> ArcFace
- DeepFace: FaceNet -> FaceNet
-
Face Clustering