Unable to extract shape_predictor_68_face_landmarks.dat for bz

Viewed 11553

I am trying to run some face frontalization code (using Python3 on Windows10), the code uses opencv and dlib and requires a file called shape_predictor_68_face_landmarks.dat. The code tries to automatically download it and then unzip it but it fails to unzip giving an unexpected end of archive error. I tried to use WinRaR to repair the file (which I also tried manualy downloading from http://sourceforge.net/projects/dclib/files/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2) but it says it can only repair .zip and .rar files.

Does anyone know where I can download the uncompressed .dat file from? Or alternatively how I can repair a damaged .bz file in Windows?

3 Answers

Downloading using the CLI is a lot easier.

wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2

To decompress the compressed file you just downloaded, use the following command

bzip2 -d shape_predictor_68_face_landmarks.dat.bz2

As mentioned above, download shape_predictor_68_face_landmarks.dat

from here. But while downloading, downloads gets failed(i faced this issue). So, if you're also facing the same issue, then i recommend to download it via command-line:

$ wget link
Related