Add get-models script.
This commit is contained in:
parent
ce72875f54
commit
71b2c63770
|
@ -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
|
Loading…
Reference in New Issue