ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.79k stars 13.42k forks source link

Training KNN #919

Open fadi212 opened 5 years ago

fadi212 commented 5 years ago

I want to know how many images per class do we need for training a KNN. Because with 1 or 2 images model is not giving me an accurate result. One more thing can we train it on GPU ?

thedevankit-0 commented 4 years ago

Have the same question, @fadi212 i have trained the knn model with 15 to 20 images and its working well for me with tolerance=.04

alessiosavi commented 4 years ago

KNN is not very suitable for a face recognition tool, try with a MLP classifier. 1 or 2 images are not a valid quantity for train a neural network.

With at least 6 photos, my neural network achieve good result: https://github.com/alessiosavi/PyRecognizer