Skip to content

Implementation of the paper "A neural algorithm of artistic style" in keras

License

Notifications You must be signed in to change notification settings

SuryaThiru/Neural-style-transfer

Repository files navigation

Neural style transfer

Implementation of "A neural algorithm of artistic style" in keras

Usage

from neural_transer import style_transfer

cnt_image = 'img/river.jpg'
style_image = 'img/starry_night.jpg'
output = 'output/'
epochs = 600
save_per_epoch = 40

style_transfer(cnt_image, style_image, output, epochs, save_per_epoch, random_canvas=True)

Few images are given in the /img folder. U can use your own images too.

Notebook and embedded html is also added in the repo.

Samples

Sample output

Requirements

  • Keras
  • Scipy
  • Numpy
  • Pillow

Program uses keras pre-trained VGG16 network.

References:

About

Implementation of the paper "A neural algorithm of artistic style" in keras

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published