Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/287.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在python中使用形状预测器文件_Python_Deserialization_Raspberry Pi3_Dlib - Fatal编程技术网

无法在python中使用形状预测器文件

无法在python中使用形状预测器文件,python,deserialization,raspberry-pi3,dlib,Python,Deserialization,Raspberry Pi3,Dlib,我一直在研究python的情感检测。我在我的Rpi上安装了dlib library for python,但每当我尝试使用扩展名为“.dat”的shape_predictor文件时,它就会给出以下错误: error : predictor = dlib.shape_predictor(predictor_path) RuntimeError: Error deserializing a floating point number. while deserializing a dlib

我一直在研究python的情感检测。我在我的Rpi上安装了dlib library for python,但每当我尝试使用扩展名为“.dat”的shape_predictor文件时,它就会给出以下错误:

error :    predictor = dlib.shape_predictor(predictor_path)
RuntimeError: Error deserializing a floating point number.
   while deserializing a dlib::matrix
   while deserializing object of type std::vector
   while deserializing object of type std::vector
   while deserializing object of type std::vector

我不知道反序列化意味着什么,为什么我要面对这个!我是python的新手!ned帮助

重命名存档将不起作用。在使用之前试着解压缩文件吧Hanks Evgeny它工作了,它在我的windows上没有解压缩就工作了,这就是为什么我想不出来。我用Pi的提取器工具解压了它。谢谢