Giter Club home page Giter Club logo

neural-style-transfer's Introduction

Neural-Style-transfer implementation in TF - 2.0

Overview

Have you ever wondered how smartphones camera filters work?
How do Snapchat or Instagram filters work?
Do you want to paint like Picasso?

If yes then you should know about The Neural Style Transfer Algorithm.

Style Transfer can be defined as the process of reconstruction of an image in the style of another image.

For detailed explanation please visit this blog

Python Tensorflow implementation of "A Neural Algorithm of Artistic Style," Gatys et al.

Result

Dependices

Python > 3.5
Numpy
PIL
Matplotlib
Tensorflow > 2.0
Keras

If you have dependency version issue use vnev

Running NST

  1. Clone or download this repo.
  2. Make the vnev (recommended)
    virtualenv mypython
  3. cd to the directory where requirements.txt is located
    activate your virtualenv
    mypthon\Scripts\activate
    then
    run:  pip install -r requirements.txt in your shell
    
    
  4. open the
    neural_style_transfer.ipynb
    (if using Jupyter notebook) or
    neural_style_transfer.py file
    change content_path variable to path of your content image
    style_path variable to path of your style image
  5. Run jupyter notebook or python3 neural_style_transfer.py in the shell.

Results

Iterations - 1000 content_weight=1e-1,style_weight=1e2 nstresult Iterations - 500 content_weight=1e-1,style_weight=1e2

Future work

  • Deploying NST model as a Django webapp.
    visit this link for webapp

Acknowledgments

https://github.com/Shashi456/Neural-Style
https://www.tensorflow.org/tutorials/generative/style_transfer
https://github.com/bhrt-sharma/Neural-Style-Transfer

neural-style-transfer's People

Contributors

minchi19 avatar

Watchers

James Cloos 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.