Giter VIP home page Giter VIP logo

styletransfer_using_adain's Introduction

Arbitrary Style Transfer in Realtime

Neural Style Transfer is an technique where we generate an artistic version of the given content image styled similar to given style image. But the method was slow and took repeated iterations. But recently a paper Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization [See paper] propsed a method that allows us to do style transfer on any two images in real time since it uses only a single feed forward neural network.

This notebook is an implementation of it using TF2 API.

architecture

Results

Here are some of the results when trained with the hyperparameter alpha = .7 that is .7 tendency towards style image while .3 towards the original image.

Note: I have only trained the model on 200 style and content images. With more data, superior decoder architecture and much training much better results could be obtained.

Set of Content + Style => Result

Architecture

Encoder

Trained VGG till conv4_1 is our encoder.

architecture


Decoder

Our trainable decoder architecture

architecture


Adaptive Instance Normalization layer (AdaIN)

Adaptive Instance normalizatin layer as proposed in paper

architecture

Final Complete architecture

architecture

styletransfer_using_adain's People

Contributors

rahul-jha98 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

jmburch921

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.