Neural style transfer is an optimization technique used to take two images—a content image and a style reference image (such as an artwork by a famous painter)—and blend them together so the output image looks like the content image, but “painted” in the style of the style reference image.
Model is taken from TensorFlow Hub. The link for the pre-trained model.
You can find the style, and content images in Images directory.
- Van Gogh - Starry Nights
- Van Gogh - Wheatfield with Crows
- Edvard Munch - Scream
I used Google Colab for this but if you will use your local machine install these libraries.
- Tensorflow
pip3 install tensorflow
- Tensorflow Hub
pip3 install --upgrade tensorflow_hub
- Numpy
pip3 install numpy
- OpenCV
pip3 install opencv-python