Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dlib "Error deserializing object of type short"

I am getting error on pose_predictor = dlib.shape_predictor(predictor_model) on dlib python.

RuntimeError: Error deserializing object of type short
   while 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
like image 272
Musab Hussain Avatar asked May 15 '17 13:05

Musab Hussain


1 Answers

I met the same issue and tried re-downloading the file, then it's OK now.

I downloaded from https://github.com/JeffTrain/selfie/blob/master/shape_predictor_68_face_landmarks.dat

like image 169
Jeff Tian Avatar answered Sep 19 '22 00:09

Jeff Tian