Deep Dream modified implementation in Keras 1.0.6 using script provided at Deep Dream in Keras Examples
Before running this script, download the weights for the VGG16 model at:
https://drive.google.com/file/d/0Bz7KyqmuGsilT0J5dmRCM0ROVHc/view?usp=sharing
(source: https://gist.github.com/baraldilorenzo/07d7802847aaad0a35d3)
and make sure the variable weights_path
in this script matches the location of the file.
- Save the weights in the root folder
- Save a copy of the weights in the root of the windows_helper folder (if you wish to use the Windows Helper tool to easily execute the script)
It is a C# program written to more easily generate the arguments for the python script Network.py
- Make sure to save the vgg16_weights.h5 weights file in the windows_helper folder.
- Upon first run, it will request the python path. Traverse your directory to locate the python.exe of your choice (Anaconda is tested)
- Automatically executes the script based on the arguments.
- Easy selection of images (Content, Output Prefix)
- Easy parameter selection
- Easily generate argument list, if command line execution is preferred.
--setting : Setting can be one of "bad_trip", "dreamy" or "custom".
--iter : Number of iterations. Default is 5. Test the output with 5 iterations, and increase to improve results.
# The below are used only if setting="custom"
--continuity : If setting is custom, allows to select continuity factor
--dream_l2 : If setting is custom, allows to select dream_l2 factor
--jitter : If setting is custom, allows to select jitter factor
- Theano
- Keras
- CUDA (GPU)
- CUDNN (GPU)
- Scipy
- Numpy
On a 980M GPU, the time required for each epoch depends on mainly image size (gram matrix size) :
At 600 x 600, each epoch requires 3 seconds.