New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
face encoding takes too much time in EC2 #910
Comments
Have you tried it on some other machine other than ec2? Is it faster on your local machine? this method is single threaded (python nature) and you're asking for 100 iteration which definitely will take time. I tried this lib on DigitalOcean standard vCPU on image from this library and it took around 1 second to encode one image with only 1 iteration. |
Hi @khadrawy, |
How much faster does it run locally? which type of cpu do you have locally? what is the average size of the image? |
we are too slow too... we are using a 4 core arm64 processor which named rockchip rk3328, running in ubuntu 16.04, give a face.jpg to execute face_encodings method, need about 3-4 seconds. any idea to speed up this method? BTW, the compare_faces method is also very SLOW :( please give some help, thanks! |
Description
Hi,
I am trying to get face encoding in ec2 machine. But it is talking around ~7 sec.
Image has only one person.
What I Did
Spin up ec2 instance c5.2xlarge. run
face_encodings = face_recognition.face_encodings(image, {face_locations}, 100)
in python console.Please help me to understand why it is too slow in ec2.
The text was updated successfully, but these errors were encountered: