Skip to content

Instantly share code, notes, and snippets.

@sgates
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgates/00c724c62fa08613d842 to your computer and use it in GitHub Desktop.
Save sgates/00c724c62fa08613d842 to your computer and use it in GitHub Desktop.
Install Deep Dream Yosemite notes
# 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