A Neural Algorithm of Artistic Style - Gatys et al. - CVPR 2016

 

Info

  • Title: A Neural Algorithm of Artistic Style
  • Task: Style Transfer
  • Author: L. A. Gatys, A. S. Ecker, and M. Bethge
  • Arxiv: 1508.06576
  • Date: Aug. 2015
  • Published: CVPR 2016

Motivation & Design

To obtain a representation of the style of an input image, we use a feature space originally designed to capture texture information.

Key Finding the representations of content and style in the Convolutional Neural Network are separable.

Network Architecture

A Neural Algorithm of Artistic Style

Content Match

To visualise the image information that is encoded at different layers of the hierarchy (Fig 1, content reconstructions) we perform gradient descent on a white noise image to find another image that matches the feature responses of the original image.

L_content(p,x,l)=12i,j(FijlPijl)2

Style Match

These feature correlations are given by the Gram matrix GlRNl×Nl, where Gijl is the inner product between the vectorised feature map of i and j in layer l:

Gijl=kFiklFjkl To generate a texture that matches the style of a given image, we use gradient descent from a white noise image to find another image that matches the style representation of the original image. This is done by minimising the mean-squared distance between the entries of the Gram matrix from the original image and the Gram matrix of the image to be generated.

El=14Nl2Ml2i,j(GijlAijl)2 L_style(a,x)=l=0LwlEl

Total Loss

L_total(p,a,x)=αL_content(p,x)+βLstyle(a,x)

Code