Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Deep Learning with PyTorch Workshop

You're reading from   The Deep Learning with PyTorch Workshop Build deep neural networks and artificial intelligence applications with PyTorch

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781838989217
Length 330 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Hyatt Saleh Hyatt Saleh
Author Profile Icon Hyatt Saleh
Hyatt Saleh
Arrow right icon
View More author details
Toc

Style Transfer

In simple words, style transfer consists of modifying the style of an image while still preserving its content. One example would be taking an image of an animal and transforming the style into a Monet-like painting, as shown in the following image:

Figure 5.1: Style transfer inputs and output – the result of the final exercise of this chapter

Note

This image is available on GitHub at https://packt.live/2XEykpL.

According to the preceding image, there are two inputs to the model: a content image and a style image. Content refers to the objects of an image, while style refers to the colors and textures. As a result, the output from the model should be an image containing the objects from the content image and the artistic appearance of the style image.

How Does It Work?

As opposed to solving a traditional computer vision problem, which was explained in the previous chapter, style transfer requires a different set of steps...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image