Giter VIP home page Giter VIP logo

style_transfer's Introduction

Style Transfer

Neural style transfer utility based on F. Chollet's Deep Learning with Python and using the VGG16 network.

Generated images are created in the output folder, in a directory with the names of the content and style images. If the corresponding setting is set to true, a gif showing the whole process will be generated as well.

Usage

All the necessary variables are configured in the "params.yml" file.

The content and style images contain the paths to the corresponding images.

To simplify the generation of new images, all share the same dimensions, set by the "image_height" parameter.

At the end of the process a gif can be created showing the whole generation process. This uses the command-line program ImageMagick, so it has to be installed beforehand.

The style is transferred by iterations, with a new image being saved at the end of each one. Each iteration performs a number of gradient descent steps. These parameters basically control the duration and intensity of the process.

The content weight controls the influence of the content in the final image. The variation weight acts as a regularization parameter to reduce pixelization. The style weight is divided by the number of style layers and applied to each one.

The content layer used produces different results depending on the layer used. Lower layers tend to focus more on low-level details while the higher ones take more context into account.

The style is taken from different layers, which are specified in the last parameter.

style_transfer's People

Contributors

alvaroferran 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.