【问题标题】:dlib.shape_predictor: deserializing object of type intdlib.shape_predictor:反序列化 int 类型的对象
【发布时间】:2021-12-13 08:17:36
【问题描述】:
import dlib
import cv2
import numpy as np
predictor_path =r'C:\Users\susi\Downloads\surveillens_ai\app\icudtl.dat'
predictor = dlib.shape_predictor(predictor_path)
Traceback (most recent call last):
  File "c:\Users\susi\Desktop\Industry 4.0\Untitled-1.py", line 5, in <module>
    predictor = dlib.shape_predictor(predictor_path)
RuntimeError: Error deserializing object of type int

【问题讨论】:

  • 您是否尝试过使用任何其他预测器文件?
  • 请澄清您的具体问题或提供其他详细信息以准确突出您的需求。正如目前所写的那样,很难准确地说出你在问什么。

标签: python dlib


【解决方案1】:

您的icudtl.dat 文件可能已损坏;重新下载。如果可能,请验证其校验和是否与源提供的值匹配。

【讨论】:

    猜你喜欢
    • 2020-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多