This is a quick guide of how to get set up and running a robust real-time facial recognition system using the Pretraiend Facenet Model and MTCNN.
- Make a directory of your name inside the Faces folder and upload your 2-3 pictures of you.
- Run
train_v2.py
. - Then run
detect.py
for realtime face recognization.
As the Facenet model was trained on older versions of TensorFlow, the architecture.py file is used to define the model's architecture on newer versions of TensorFlow so that the pre-trained model's weight can be loaded.
Dowload pre-trained weight from Here.👈
For in depth explanation follow this amazingly expained article. 👈
This code was working properly on tensroflow 2.3.0.
Tensorflow 2.X
numpy
opencv-python
mtcnn
scikit-learn
scipy