Giter VIP home page Giter VIP logo

neural-style's Introduction

neural style

This is a tensorflow implementation of A Neural Algorithm of Artistic Style. Neual style transfer makes use of convolutional neural networks to combine the features of two images.

Here's an example that combines the features of image of hill station captured by me and Starry night

hill style
output

Usage

Basic usage

Place the images in images directory, and run the nn module.

Setup

Dependencies:
  • tensorflow
  • numpy
Model
sh download_model.sh

This will download the model in /model directory.

It takes around 3 mins for 20 epochs on CPU.

-options

  • Layer options : You can make use of other features lke style interpolation, content/style tradeoff, style scale by changing style_layers module.
    • style_layers: Comma-separated list of layer names to use for style reconstruction. Default is conv1_1, conv2_1, conv3_1, conv4_1, and conv5_1
  • Output options: Generated images are placed in output by default. You can change the address in nn module.

Optimization options:

  • num_iterations: 200.
  • optimizer: Adam, lbfgs may be used and may give better results but will consume more memory.
  • learning_rate: Learning rate to use with the ADAM optimizer. Default is 2.0

Implementation details

Images are initialized with white noise. Adam Optimizer has been used

We perform style reconstructions using the conv1_1, conv2_1, conv3_1, conv4_1, and conv5_1 layers . As in the paper, the five style reconstruction losses have equal weights.

neural-style's People

Contributors

prajjwal1 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

shalikhub

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.