GithubHelp home page GithubHelp logo

fdan / neuraltexturesynthesis Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pierre-wilmot/neuraltexturesynthesis

0.0 0.0 0.0 118.03 MB

Code for "Stable and Controllable Neural Texture Synthesis and Style Transfer Using Histogram Losses"

Home Page: https://pierre-wilmot.github.io/NeuralTextureSynthesis/

C++ 1.49% Python 38.35% Cuda 22.65% HTML 37.51%

neuraltexturesynthesis's Introduction

NeuralTextureSynthesis

Code for "Stable and Controllable Neural Texture Synthesis and Style Transfer Using Histogram Losses"

Notes:

  • The histogram functionality relies on a custom cuda module, so you'll need a cuda GPU to run the code.
  • Tested on GTX1080, top VRAM usage is just under 2700MB, runtime is 10 mins per image.
  • Code differs from the paper as the loss balancing is done with "magic numbers" rather than using the gradient clipping described in the paper.
  • Code doesn't implement the TV loss (total variation), as results didn't appear to have high frequency noise.

Usage:

The code contains a custom C++/Cuda module that gets compiled on the fly, in order to do that you need to use the same compiller as the one used to compile your release of PyTorch. On my machine, that's g++.

To launch the program : CXX=g++ python main.py src/*

This will run all images in src folder with and without histogram and generate a results.html page.

Sample results:

https://pierre-wilmot.github.io/NeuralTextureSynthesis/

neuraltexturesynthesis's People

Contributors

pierre-wilmot avatar gheaeckkseqrz 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.