GithubHelp home page GithubHelp logo

nicolastah / semantic-style-transfer Goto Github PK

View Code? Open in Web Editor NEW
9.0 4.0 6.0 2.93 MB

Tensorflow implementation of semantic style transfer based on guided Gram Matrices

License: GNU Lesser General Public License v3.0

Python 4.30% Jupyter Notebook 95.70%
guided-gram-matrices tensorflow style-transfer neural-style

semantic-style-transfer's Introduction

Code out 😊, still cleaning the readme and the wiki

semantic-style-transfer

🎨 🎨 Tensorflow implementation of our paper Improving Semantic Style Transfer Using Guided Gram Matrices. Our model is based on the image optimisation problem defined in Controlling Perceptual Factors in Neural Style Transfer. We proposed 2 simple solutions to improve the quality of the generated images:

  • Gradient capping
  • Auto-tuning

Contents

  1. Examples
  2. Implementation Details
  3. Installation
  4. Usage
  5. Acknowledgements
  6. Citation
  7. License

Examples

Full style transfer

Semantic style transfer

Implementation Details

Installation

Let's get started! Installation will be pretty easy. First, clone a copy of this repository:

git clone https://github.com/nicolastah/semantic-style-transfer

The next step will be to create a new project using your favorite python IDE. I'm personnally using Pycharm. I find its integrated debugger just awesome! Last step is to install all the depedencies and you will be ready to go πŸ˜›!

Dependencies

I recommend creating isolated Python environments using Virtualenv. Vital to avoid dependencies conflicts 😡 when working on different projects. For those who are not familiar with Virtualenv, here are 2 tutorials that should help you get started, tuto1 and tuto2. The code was tested on Ubuntu16.04.

Model Weigths: VGG19

  • Download the weights here.
  • Recall that style transfer is based on perceptual losses.Β Those losses allow to separate style and content. They are computed from high level features. As in the orignal work A Neural Algorithm of Artistic Style, we extract those features using a VGG19 pretrained on image classification.

Usage

Check our wiki for code usage.

Acknowledgements

Citation

@misc{nchung2018_semantic_style,
  author = {Chung Nicolas},
  title = {Semantic Style Transfer},
  year = {2018},
  howpublished = {\url{https://github.com/nicolastah/semantic-style-transfer}},
  note = {commit xxxxxxx}
}

License

Copyright (c) 2018 Chung Nicolas. Released under GPLv3. See LICENSE.txt for details.

semantic-style-transfer's People

Contributors

nicolastah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

semantic-style-transfer's Issues

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.