Skip to content

Commit

Permalink
get-models: Use no-check-cert for our self-hosted models.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Feb 7, 2017
1 parent 4ee2cd3 commit 6848378
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
sudo: requires
services:
- docker
dist: trusty

language: python
python:
Expand Down
15 changes: 9 additions & 6 deletions models/get-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ if [ ! -f dlib/shape_predictor_68_face_landmarks.dat ]; then
printf "This will incur about 60MB of network traffic for the compressed\n"
printf "models that will decompress 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
wget --no-check-certificate -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."
Expand All @@ -41,12 +42,14 @@ if [ ! -f openface/nn4.small2.v1.t7 ]; then
printf "This will incur about 100MB of network traffic for the models.\n"
printf "====================================================\n\n"

wget -nv http://openface-models.storage.cmusatyalab.org/nn4.small2.v1.t7 \
-O openface/nn4.small2.v1.t7
wget --no-check-certificate -nv \
http://openface-models.storage.cmusatyalab.org/nn4.small2.v1.t7 \
-O openface/nn4.small2.v1.t7
[ $? -eq 0 ] || ( rm openface/nn4.small2.v1.t7* && die "+ nn4.small2.v1.t7: Error in wget." )

wget -nv http://openface-models.storage.cmusatyalab.org/celeb-classifier.nn4.small2.v1.pkl \
-O openface/celeb-classifier.nn4.small2.v1.pkl
wget --no-check-certificate -nv \
http://openface-models.storage.cmusatyalab.org/celeb-classifier.nn4.small2.v1.pkl \
-O openface/celeb-classifier.nn4.small2.v1.pkl
[ $? -eq 0 ] || ( rm openface/celeb-classifier.nn4.small2.v1.pkl && \
die "+ celeb-classifier.nn4.small2.v1.pkl: Error in wget." )
fi
Expand Down

0 comments on commit 6848378

Please sign in to comment.