Applying style transfer to custom images
Have you ever wondered how a picture of your puppy Fluffy would look if your favorite artist painted it? What if a photo of your car was the product of merging it with the magic of your most beloved painting? Well, you don't have to wonder anymore! With Neural Style Transfer, we can make our favorite images look like wonderful pieces of art effortlessly!
In this recipe, we'll use the StyleTransferrer()
class we implemented in the Implementing Neural Style Transfer recipe to stylize our own images.
Getting ready
In this recipe, we'll be using the StyleTransferrer()
implementation from the previous recipe. In order to maximize the fun you'll get out of this recipe, you can find the sample image, along with many different paintings (which you can use as the style reference), here:
https://github.com/PacktPublishing/Tensorflow-2.0-Computer-Vision-Cookbook/tree/master/ch4/recipe4.
The following is the sample image...