Giter VIP home page Giter VIP logo

deep-style-transfer's Introduction

Deep Style Transfer

Tensorflow implementation of the fast feed-forward neural style transfer network by Johnson et al.

Here is an example of styling a photo of San Francisco with Van Gogh's Starry Night

The code is based off this paper by Johnson et al which in turn builds off of A Neural Algorithm of Artistic Style by Gatys et al.

This implementation uses Instance Norm described by Ulyanov et al and Resize-Convolution from Odena et al.

Takes a few hours to train on a P2 instance on AWS and image generation takes a few seconds on a Macbook Pro. Training image dataset was from MS COCO validation set and uses the VGG19 network for texture and style loss

Requirements

  1. Tensorflow 0.10
  2. pip install:
  • scikit-image
  • numpy 1.11

Instructions for Processing

  1. Go to the project root (there is a pretrained model in the /data directory)
  2. Run:
$ python style.py --input=path_to_image.jpg --output=your_output_file.jpg

Intructions for Training

  1. Download VGG19 weights as vgg19.npy
  2. Download MS COCO dataset - the training script defaults to look for images in a directory named input_images
  3. Run:
$ python train.py --data_dir=/path/to/ms_coco --texture=path/to/source_image.jpg

deep-style-transfer's People

Contributors

albertlai avatar

Watchers

James Cloos avatar Vikas Raunak avatar  avatar paper2code - bot avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.