openface/models/get-models.sh

23 lines
480 B
Bash
Raw Normal View History

2015-09-25 02:31:46 +08:00
#!/bin/bash
#
# Download FaceNet models.
cd "$(dirname "$0")"
set -x -e
mkdir -p dlib
if [ ! -f dlib/shape_predictor_68_face_landmarks.dat ]; then
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 \
-O dlib/shape_predictor_68_face_landmarks.dat.bz2
bunzip2 dlib/shape_predictor_68_face_landmarks.dat.bz2
fi
exit -1 # TODO - Add FaceNet nn4.v1 URL below
mkdir -p facenet
if [ ! -f facenet/nn4.v1.t7 ]; then
wget TODO \
-O facenet/nn4.v1.t7
fi