项目作者: ArnoutDevos

项目描述 :
Implementation of "A Neural Algorithm of Artistic Style" in TensorFlow
高级语言: Python
项目地址: git://github.com/ArnoutDevos/StyleTransferTensorFlow.git
创建时间: 2018-01-08T14:42:59Z
项目社区:https://github.com/ArnoutDevos/StyleTransferTensorFlow

开源协议:

下载


StyleTransferTensorFlow

Implementation of the paper “A Neural Algorithm of Artistic Style“ in TensorFlow

The general idea is to take two images, and produce a new image that reflects the content of one but the artistic “style” of the other. We will do this by first formulating a loss function that matches the content and style of each respective image in the feature space of a deep neural network, and then performing gradient descent on the pixels of the image itself.

A more verbose version giving a deeper explanation and going over equations can be found in the following blogpost A Neural Algorithm of Artistic Style.

Usage

Prerequisites

  1. Python 3
  2. TensorFlow
  3. Python packages : NumPy, SciPy
  4. Pretrained VGG19 file : imagenet-vgg-verydeep-19.mat

    • Download the file from the link above.
    • Save the file under model/

Running

  1. python StyleTransferTensorFlow.py