In this face recognition project , I have used DeepFace
framework to recognize people's name .
pip install -r requirements.txt
You only need to Run Deepface_recognition.py
. At the end of the code , in predict stage you should give an image to the model , to predict it's label .
therefore set img_path
to your test image path :
embedding_obj_features = DeepFace.represent(img_path="image.jpg" , model_name="ArcFace" , enforce_detection=False)
Here is our loss and accuracy results :
Accuracy | Loss | |
---|---|---|
train | 0.96 | 0.11 |
test | 0.76 | 1.96 |