Skip to content

Commit

Permalink
Update links to our models.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Feb 7, 2017
1 parent 6848378 commit 320cf3d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion demos/sphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def toFrame(x):
help="Path to Torch network model.",
default='nn4.small2.3d.v1.t7')
# Download the 3D model from:
# http://openface-models.storage.cmusatyalab.org/nn4.small2.3d.v1.t7
# http://storage.cmusatyalab.org/openface-models/nn4.small2.3d.v1.t7
parser.add_argument('--imgDim', type=int,
help="Default image dimension.", default=96)
parser.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion docs/demo-4-sphere.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,6 @@ To run this on your computer:

1. [Set up OpenFace](http://cmusatyalab.github.io/openface/setup/).
2. Download the 3D model from
[here](http://openface-models.storage.cmusatyalab.org/nn4.small2.3d.v1.t7).
[here](http://storage.cmusatyalab.org/openface-models/nn4.small2.3d.v1.t7).
3. Run [demos/sphere.py](https://github.com/cmusatyalab/openface/blob/master/demos/sphere.py)
with the `--networkModel` argument pointing to the 3D model.
8 changes: 4 additions & 4 deletions docs/models-and-accuracies.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ and [CASIA-WebFace](http://arxiv.org/abs/1411.7923).

The models can be downloaded from our storage servers:

+ [nn4.v1](http://openface-models.storage.cmusatyalab.org/nn4.v1.t7)
+ [nn4.v2](http://openface-models.storage.cmusatyalab.org/nn4.v2.t7)
+ [nn4.small1.v1](http://openface-models.storage.cmusatyalab.org/nn4.small1.v1.t7)
+ [nn4.small2.v1](http://openface-models.storage.cmusatyalab.org/nn4.small2.v1.t7)
+ [nn4.v1](http://storage.cmusatyalab.org/openface-models/nn4.v1.t7)
+ [nn4.v2](http://storage.cmusatyalab.org/openface-models/nn4.v2.t7)
+ [nn4.small1.v1](http://storage.cmusatyalab.org/openface-models/nn4.small1.v1.t7)
+ [nn4.small2.v1](http://storage.cmusatyalab.org/openface-models/nn4.small2.v1.t7)

API differences between the models are:

Expand Down
10 changes: 5 additions & 5 deletions models/get-models.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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 --no-check-certificate -nv \
wget -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."
Expand All @@ -42,13 +42,13 @@ 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 --no-check-certificate -nv \
http://openface-models.storage.cmusatyalab.org/nn4.small2.v1.t7 \
wget -nv \
http://storage.cmusatyalab.org/openface-models/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 --no-check-certificate -nv \
http://openface-models.storage.cmusatyalab.org/celeb-classifier.nn4.small2.v1.pkl \
wget -nv \
http://storage.cmusatyalab.org/openface-models/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." )
Expand Down

0 comments on commit 320cf3d

Please sign in to comment.