-
Notifications
You must be signed in to change notification settings - Fork 203
/
Copy pathget-models.sh
executable file
·19 lines (18 loc) · 940 Bytes
/
get-models.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env sh
#
# Download model, this script refer to openface:https://github.com/cmusatyalab/openface
mkdir -p dlib
if [ ! -f dlib/shape_predictor_68_face_landmarks.dat ]; then
printf "\n\n====================================================\n"
printf "Downloading dlib's public domain face landmarks model.\n"
printf "Reference: https://github.com/davisking/dlib-models\n\n"
printf "This will incur about 60MB of network traffic for the compressed\n"
printf "models that will decpmoress to about 100MB on disk.\n"
printf "====================================================\n\n"
wget -nv http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 \
-O dlib/shape_predictor_68_face_landmarks.dat.bz2
[ $? -eq 0 ] || die "+ Error in wget."
bunzip2 dlib/shape_predictor_68_face_landmarks.dat.bz2
[ $? -eq 0 ] || die "+ Error using bunzip2."
fi
echo "download dlib/shape_predictor_68_face_landmarks done!"