A Keras Implementation of "A Neural Algorithm of Artistic Style"
Switch branches/tags
Nothing to show
Clone or download
Latest commit df9bd9e Oct 31, 2017
Failed to load latest commit information.
examples Add files via upload Jan 16, 2017
.gitignore Initial commit Dec 26, 2016
LICENSE Create LICENSE Oct 31, 2017
README.md Update README.md Jan 17, 2017
docs.md Update docs.md Jan 16, 2017
generate.py Update generate.py Jan 23, 2017
losses.py Add files via upload Jan 17, 2017
neural_styler.py Update neural_styler.py Jan 17, 2017
utils.py Add files via upload Jan 17, 2017


Artistic Style Transfer in Keras

This is a Keras implementation of A Neural Algorithm of Artistic Style by Leon A. Gatys, Alexander S. Ecker and Matthias Bethge.

Neural Styler lets you create artistic images by combining a base picture with the style of another. For example, the images above show multiple iterations of the Chicago skyline combined with Edvard Munch's The Scream.


Styling an image is done through generate.py as follows:

python generate.py examples/bases/chicago.jpg examples/styles/umbrella_girl.jpg examples/results/my_result

For a more detailed documentation along with the default parameters click here.


  • keras (and associated dependencies)
    • numpy, scipy
    • pyyaml
    • HDF5 and h5py
  • pillow
  • Python 2 and 3


  • This implementation uses some code from Francois Chollet's Neural Style Transfer.
  • The hierarchy also borrows from Giuseppe's gist which you can view here.
  • Documentation has also borrowed from Logan Engstrom's Fast Style Transfer