Skip to content

Commit

Permalink
Updated out of date model URL
Browse files Browse the repository at this point in the history
  • Loading branch information
yosinski committed Jul 19, 2016
1 parent 133ec85 commit 1a0414c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions caffe/ascent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ experimental bookkeeping) is in the
* If you happen to be working in a
cluster environment that uses ```qsub```, you may find the shell scripts
useful; otherwise they probably won't help you much.
* If you don't have a trained net around, you can download the trained model we used here: http://yosinski.cs.cornell.edu/yos_140311__caffenet_iter_450000
* If you don't have a trained net around, you can download a model here: http://c.yosinski.com/caffenet-yos-weights
* A file containing class labels is also used by the script and can be downloaded here: http://s.yosinski.com/synset_words.txt


Expand All @@ -47,7 +47,7 @@ Once Caffe is built, continue by fetching some auxiliary data (synsets.txt and a
[~/fooling/caffe] $ cd data/ilsvrc12
[~/fooling/caffe/data/ilsvrc12] $ ./get_ilsvrc_aux.sh
[~/fooling/caffe/data/ilsvrc12] $ cd ../../ascent
[~/fooling/caffe/ascent] $ wget 'http://yosinski.cs.cornell.edu/yos_140311__caffenet_iter_450000'
[~/fooling/caffe/ascent] $ wget 'http://c.yosinski.com/caffenet-yos-weights'

Now we're ready to run the optimization. To find a quick fooling image for the Lion class (idx 291) using only 3 gradient steps, run the following:

Expand Down
4 changes: 2 additions & 2 deletions caffe/ascent/find_fooling_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def load_net_mean():

model_def_file = 'deploy_1_forcebackward.prototxt'

# Can be downloaded from http://yosinski.cs.cornell.edu/yos_140311__caffenet_iter_450000
pretrained_model = 'yos_140311__caffenet_iter_450000'
# Can be downloaded from http://c.yosinski.com/caffenet-yos-weights
pretrained_model = 'caffenet-yos-weights'

# Can be downloaded from http://s.yosinski.com/synset_words.txt
with open('%s/data/ilsvrc12/synset_words.txt' % caffe_root) as ff:
Expand Down

0 comments on commit 1a0414c

Please sign in to comment.