Understanding neural style transfer
Imagine a scenario where you want to draw an image in the style of Van Gogh. Neural style transfer comes in handy in such a scenario. In neural style transfer, we use a content image and a style image, and we combine these two images in such a way that the combined image preserves the content of the content image while maintaining the style of the style image.
How neural style transfer works
An example style image and content image are as follows:
Figure 11.13: (Left) Style image. (Right) Content image
We want to retain the content in the picture on the right (the content image), but overlay it with the color and texture in the picture on the left (the style image).
The process of performing neural style transfer is as follows (we’ll go through the technique outlined in this paper: https://arxiv.org/abs/1508.06576). We try to modify the original image in a way that the loss value is split into content loss and style...