Last active
August 29, 2015 14:24
-
-
Save sgates/00c724c62fa08613d842 to your computer and use it in GitHub Desktop.
Install Deep Dream Yosemite notes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/robertsdionne/f58a5fc6e5d1d5d2f798 | |
# had a bad boost install already (1.5.8), followed this to fix it: | |
# http://itinerantbioinformaticist.blogspot.com/2015/05/caffe-incompatible-with-boost-1580.html | |
# don't forget to brew unlink boost && brew link boost | |
# then run in the caffe folder to fix previous bad install (no rule to make target errors): | |
$ make clean | |
#if ipython is broken because it's missing pyzmq | |
$ sudo pip uninstall ipython | |
$ sudo pip install "ipython[all]" | |
#You'll need a model file: | |
wget http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel | |
# put it in caffe/models/bvlc_googlenet | |
# when it's running, use ffmpeg to make videos and gifs from the frames (from outside the frames folder): | |
rm -rf out* && ffmpeg -f image2 -r 10 -i frames/%04d.jpg -c:v libx264 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" out.mp4 && ffmpeg -i out.mp4 -pix_fmt rgb24 out.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment