diff --git a/README.md b/README.md index 3723749..3cf949a 100644 --- a/README.md +++ b/README.md @@ -16,12 +16,14 @@ Easy to configure Python program that make use of [Google's DeepDream](https://g * [FFmpeg](https://www.ffmpeg.org/) (Optional, required for videos.) ## Installation -1. Install [NumPy](https://pypi.python.org/pypi/numpy), [SciPy](https://pypi.python.org/pypi/scipy/), [Pillow](https://pypi.python.org/pypi/Pillow/) and [Caffe](http://caffe.berkeleyvision.org/). *NumPy, SciPy & Pillow can be installed via PIP.* -2. Download **deploy.prototxt** from [bvlc_googlenet](https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet). -3. Add line `force_backward: true` to **deploy.prototxt** file. -4. Download **bvlc_googlenet.caffemodel** from [bvlc_googlenet](https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet). -5. (Optional) If instead you want to incept using MIT's "Places" neural net, download the **Places205-GoogLeNet** from [their website](http://places.csail.mit.edu/downloadCNN.html). You need the **deploy_places205.protxt** and **googlelet_places205_train_iter_2400000.caffemodel** files from the archive. -6. Make sure the files are in the root directory of DeepDreamer. +* For Mac OSX, run 'sh macInstaller.sh' in the terminal. +* Manually install : + 1. Install [NumPy](https://pypi.python.org/pypi/numpy), [SciPy](https://pypi.python.org/pypi/scipy/), [Pillow](https://pypi.python.org/pypi/Pillow/) and [Caffe](http://caffe.berkeleyvision.org/). *NumPy, SciPy & Pillow can be installed via PIP.* + 2. Download **deploy.prototxt** from [bvlc_googlenet](https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet). + 3. Add line `force_backward: true` to **deploy.prototxt** file. + 4. Download **bvlc_googlenet.caffemodel** from [bvlc_googlenet](https://github.com/BVLC/caffe/tree/master/models/bvlc_googlenet). + 5. (Optional) If instead you want to incept using MIT's "Places" neural net, download the **Places205-GoogLeNet** from [their website](http://places.csail.mit.edu/downloadCNN.html). You need the **deploy_places205.protxt** and **googlelet_places205_train_iter_2400000.caffemodel** files from the archive. + 6. Make sure the files are in the root directory of DeepDreamer. ## Usage * Just deep dreaming diff --git a/macInstaller.sh b/macInstaller.sh new file mode 100644 index 0000000..9d605da --- /dev/null +++ b/macInstaller.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +#clone the repo +git clone https://github.com/kesara/deepdreamer.git deepdreamer +cd deepdreamer + +#install basic deps + +/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" +brew install python +curl -O http://python-distribute.org/distribute_setup.py +python distribute_setup.py +curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py +python get-pip.py + +#install numpy scipy Pillow +pip install numpy scipy Pillow + +#download the prototxt file +curl -O https://github.com/BVLC/caffe/blob/master/models/bvlc_googlenet/deploy.prototxt + +#add the line +echo "force_backward: true">>deploy.prototxt + +#download the caffemodel +curl -O http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel \ No newline at end of file