openface/models/get-models.sh

30 lines
819 B
Bash
Raw Normal View History

2015-09-25 02:31:46 +08:00
#!/bin/bash
#
2015-10-09 22:48:06 +08:00
# Download OpenFace models.
2015-09-25 02:31:46 +08:00
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
2015-10-13 01:18:23 +08:00
set +x
echo ==========
echo The nn4.v1.t7 and celeb-classifier.nn4.v1.pkl models are
echo copyright Carnegie Mellon University and are licensed under
echo the Apache 2.0 License.
echo ==========
set -x
2015-10-09 22:48:06 +08:00
mkdir -p openface
if [ ! -f openface/nn4.v1.t7 ]; then
2015-10-12 04:54:49 +08:00
wget http://openface-models.storage.cmusatyalab.org/nn4.v1.t7 \
2015-10-09 22:48:06 +08:00
-O openface/nn4.v1.t7
2015-10-12 04:54:49 +08:00
wget http://openface-models.storage.cmusatyalab.org/celeb-classifier.nn4.v1.pkl \
-O openface/celeb-classifier.nn4.v1.pkl
2015-09-25 02:31:46 +08:00
fi