Code Monkey home page Code Monkey logo

neural_artistic_style's Introduction

Neural Artistic Style Implementation in TensorFlow

By Yulun Tian [http://yuluntian.wixsite.com/yuluntian]

(Illustration from "A Neural Algorithm of Artistic Style", Gatys et al. 2015)

Video demonstration [https://youtu.be/KvL2OuCClUY]

Introduction

This project replicates the results in "A Neural Algorithm of Artistic Style", Gatys et al. 2015. A neural network is trained to create new artistic images by recombining styles and contents from different inputs. Total variation denoising is also integrated to ensure the output image is visually coherent.

The original paper can be accessed here: [https://arxiv.org/abs/1508.06576]

The neural network used in this project is based on a VGG16 model pre-trained on ImageNet. The model is kindly provided by Davi Frossard: [https://www.cs.toronto.edu/~frossard/post/vgg16/]

Run this project

To run this project, make sure you have TensorFlow installed. This project is currently compatible with TensorFlow 1.0.

Also, download the pre-trained VGG 16 model using this link, and place the downloaded vgg16_weights.npz file under vgg16/models/.

To run a demo, run the following in your terminal:

python neural_artist.py

To see the full options, run:

python neural_artist.py --help

neural_artistic_style's People

Contributors

yuluntian avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

vaibhavahuja

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.