get-models: Use no-check-cert for our self-hosted models.

This commit is contained in:
Brandon Amos 2017-02-07 11:33:01 -05:00
parent 4ee2cd34fe
commit 6848378f40
No known key found for this signature in database
GPG Key ID: E9B7164CB72D6B6F
2 changed files with 9 additions and 7 deletions

View File

@ -1,7 +1,6 @@
sudo: requires
services:
- docker
dist: trusty
language: python
python:

View File

@ -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."
@ -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