Add get-models script.

This commit is contained in:
Brandon Amos 2015-09-24 14:31:46 -04:00
parent ce72875f54
commit 71b2c63770
1 changed files with 22 additions and 0 deletions

22
models/get-models.sh Executable file
View File

@ -0,0 +1,22 @@
#!/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