We're going use pre-trained VGG16 convolutional network that won the ImageNet competition in 2014 for image classification to transfer the style of a given image to another. This is the original paper on the topic.
run pip install -r requirements.txt
to install the necessary dependencies
If it doesn't exist, create a file called ~/.keras/keras.json and make sure it looks like the following:
{
"image_dim_ordering": "tf",
"epsilon": 1e-07,
"floatx": "float32",
"backend": "tensorflow"
}
Then you can run the code via typing jupyter notebook
into terminal.
The credits for this code go to hnarayanan.