【问题标题】:RuntimeError: The full_object_detection must use the iBUG 300W 68 point face landmark styleRuntimeError: full_object_detection 必须使用 iBUG 300W 68 点人脸界标样式
【发布时间】:2018-06-06 07:27:27
【问题描述】:

我想编译这个程序:https://github.com/davisking/dlib/blob/master/python_examples/face_clustering.py

但是我收到了这个错误信息:

处理文件:../examples/faces/2008_002079.jpg

检测到的人脸数量:6

Traceback(最近一次调用最后一次): 文件“face_clustering_new.py”,第 87 行,在 face_descriptor = facerec.compute_face_descriptor(img,形状) RuntimeError: full_object_detection 必须使用 iBUG 300W 68 点人脸界标样式。

【问题讨论】:

    标签: python dlib


    【解决方案1】:

    只需替换

    shape_predictor_5_face_landmarks.dat

    shape_predictor_68_face_landmarks.dat

    可用here

    【讨论】:

      【解决方案2】:

      我解决了这个问题。我把程序称为

      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。

      【讨论】:

        猜你喜欢
        • 2021-07-27
        • 2021-06-27
        • 2012-04-17
        • 2018-06-26
        • 2019-06-18
        • 1970-01-01
        • 2021-12-25
        • 2020-09-03
        • 2019-08-23
        相关资源
        最近更新 更多