RuntimeError: The full_object_detection must use the iBUG 300W 68 point face landmark style
RuntimeError: The full_object_detection must use the iBUG 300W 68 point face landmark style
我想编译这个程序:https://github.com/davisking/dlib/blob/master/python_examples/face_clustering.py
但是我收到了这个错误信息:
处理文件:../examples/faces/2008_002079.jpg
检测到的面孔数:6
回溯(最后一次调用):
文件 "face_clustering_new.py",第 87 行,位于
face_descriptor = facerec.compute_face_descriptor(img, 形状)
RuntimeError: full_object_detection 必须使用 iBUG 300W 68 点人脸地标样式。
我解决了这个问题。我调用了
这样的程序
python3 face_clustering_new.py ../dlib-models/shape_predictor_5_face_landmarks.dat ../dlib-models/dlib_face_recognition_resnet_model_v1.dat ../examples/faces output_folder
我用了python3.
只需更换
shape_predictor_5_face_landmarks.dat
和
shape_predictor_68_face_landmarks.dat
可用here
我想编译这个程序:https://github.com/davisking/dlib/blob/master/python_examples/face_clustering.py
但是我收到了这个错误信息:
处理文件:../examples/faces/2008_002079.jpg
检测到的面孔数:6
回溯(最后一次调用): 文件 "face_clustering_new.py",第 87 行,位于 face_descriptor = facerec.compute_face_descriptor(img, 形状) RuntimeError: full_object_detection 必须使用 iBUG 300W 68 点人脸地标样式。
我解决了这个问题。我调用了
这样的程序python3 face_clustering_new.py ../dlib-models/shape_predictor_5_face_landmarks.dat ../dlib-models/dlib_face_recognition_resnet_model_v1.dat ../examples/faces output_folder
我用了python3.
只需更换
shape_predictor_5_face_landmarks.dat
和
shape_predictor_68_face_landmarks.dat
可用here