Giter Site home page Giter Site logo

enric1994 / neuralstyle Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 2.7 MB

Style transfer using Docker and Tensorflow

Home Page: https://enric1994.github.io/neuralstyle/

License: GNU General Public License v3.0

Dockerfile 0.78% Python 74.74% Shell 14.12% C++ 9.75% Makefile 0.60%

neuralstyle's Introduction

During the first month of my PhD I worked on the style transfer technique applied to videos. The objective is transform the news into a "cartoonized" video for kids by transferring the style of a cartoon.

I encapsulated the code of cysmith in a GPU-ready image with all the dependencies, including the download of the VGG-19 pretrained weights.

The style transfer process requires 2 photos:

  • The target: the image that we want to represent with another style. All the colors and textures will be lost in the process, however the contents will survive to the output image.
  • The style: the image with the textures and colors that will be transferred to the output.

The following video transfer the style from the "The Powerpuff Girls" to the weather forecast:

<iframe width="560" height="315" src="https://www.youtube.com/embed/uSIRT_fGo9E" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>

Usage

Having Docker, Docker Compose, NVIDIA-Docker and a NVIDIA GPU run:

docker-compose -f docker/docker-compose.yml run neuralstyle bash

Then, use the neural_style.py script on images/videos:

python neural_style.py --content_img golden_gate.jpg \
                       --style_imgs starry-night.jpg \
                       --max_size 500 \
                       --max_iterations 100 \
                       --verbose;

References

This repository is a Dockerized version of https://github.com/cysmith/neural-style-tf

neuralstyle's People

Contributors

enric1994 avatar

Stargazers

Matthew J. Oldach avatar ChrisGuest avatar

Watchers

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