Getting ready
The intuition of neural style transfer is as follows.
We try to modify the original image in a similar way to the DeepDream algorithm. However, the additional step is that the loss value is split into content loss and style loss.
Content loss refers to how different the generated image is from the content image. Style loss refers to how correlated the style image is to the generated image.
While we mentioned that the loss is calculated based on the difference in images, in practice, we modify it slightly by ensuring that the loss is calculated using the activations from images and not the original images. For example, the content loss at layer 2 will be the squared difference between activations of the content image and the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access