Search code examples
pythonface-detectiondlib

Dlib,python,face_detection with neural network


When ever i tried to load the trained model of cnn based face_detectorin dlib.i got this error.


detector = dlib.simple_object_detector('mmod_human_face_detector.dat')
Traceback (most recent call last):
File "/home/hasans/Desktop/1/face_recognition1/face_detector.py", line 51, in <module>

detector = dlib.simple_object_detector('mmod_human_face_detector.dat')
RuntimeError: Unsupported version found when deserializing a scan_fhog_pyramid object</br>


how to get rid of this error?

.


Solution

  • DNN based face detector is now officially available for using in python in its latest release 19.6.Everyone can download it from

    https://dlib.net

    cheers !!!