O'Reilly logo

Building Machine Learning Projects with TensorFlow by Rodolfo Bonnin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Example - painting with style - VGG style transfer

In this example, we will work with the implementation of the paper A Neural Algorithm of Artistic Style from Leon Gatys.

Note

The original code for this exercise was kindly provided by Anish Athalye ( http://www.anishathalye.com/ ).

We have to note that this exercise does not have a training part. We will just be loading a pretrained coefficient matrix, provided by VLFeat, a database of pre trained models, which can be used to work on models, avoiding the normally computationally intensive training:

Example - painting with style - VGG style transfer

Style transfer main concepts

Useful libraries and methods

  • Loading parameters files with scipy.io.loadmat ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required