Training fast neural-style transfer models

In this section, we'll show you how to train models using the fast neural-style transfer algorithm with TensorFlow. Perform the following steps to train such a model:

  1. On a Terminal of your Mac or preferably GPU-powered Ubuntu, run git clone https://github.com/jeffxtang/fast-style-transfer, which is a fork of a nice TensorFlow implementation of Johnson's fast-style transfer, modified to allow the trained model to be used in iOS or Android apps.
  2. cd to the fast-style-transfer directory, then run the setup.sh script to download the pre-trained VGG-19 model file as well as the MS COCO training dataset, which we mentioned in the previous chapter – note that it can take several hours to download the large ...

Get Intelligent Mobile Projects with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.