ageitgey / face_recognition

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

Is it possible to make a HOG face detection with GPU? #610

Open pavbro opened 6 years ago

pavbro commented 6 years ago

CNN face detector founds not only a frontal faces. I need only a frontal faces and I found that HOG method giving better results for me. Is it possible to make in work on GPU like CNN can work with batches?

ageitgey commented 6 years ago

No, the HOG detector isn't implemented in a way that would currently benefit from a GPU/CUDA as far as I know.

I suppose it's possible someone could dig into the dlib HOG/svm code and try to add some GPU speed-ups, but I'm not sure how much work it would take or how much benefit you would even get for that anyway. CUDA is really designed for speeding up the specific math used in neural networks and thus works best for those kinds of algorithms. I'm not familiar enough with CUDA's API to know if it would be a good fit for speeding up anything in the HOG/svm pipeline.

hhsm95 commented 5 years ago

There is anyway to speed up more the face recognition with HOG? I already use all my cores and threads of CPU and it can analyze near 50k images per second (already been recognized and face landmarks stored in a database), but I don't know if it can go more faster than that.

7thstorm commented 5 years ago

any updates of getting HOG to work with GPU?

shiva2410 commented 4 years ago

@adeoy bro can you share your code . How you managed to run hog based face detector on Multiple cpus I am looking to do same from past few days

Hakentha commented 3 years ago

50k per image? share code please.