Giter VIP home page Giter VIP logo

neural-style-transform's Introduction

About

Creating fun images/videos by using Neural Style Transformation algorithms.

Some examples:

+ =

GIF of lion image being styled with cubist style:

Installation

This project is built upon PyTorch using Python 3.8+.

For GPU support install CUDA.

All modules used are in file requirements.txt.

Install: terminal -> pip3 install -r requirements.txt.

Usage

All parameters are setup in config.json file.

Parameters:

  • image - content image - name of content image, eg. lion.jpg
  • style - style image - name of style image, eg. cubist.jpg
  • path_type - type of path - relative or absolute
  • content_images_dir - path to content images folder, eg. data/content_images/
  • style_images_dir - path to style images folder, eg. data/style_images/
  • output_images_dir - path to output images folder, eg. data/output_images/
  • freq - how frequently will image be saved while training (1 means after every step, 2 after every 2 steps, 0 means only final image will be saved)
  • video - creating video from all training steps - True or False (only possible if frequency is >= 1)
  • height - height of an image - int number, eg. 500
  • image_format - in what format will image be saved - leave first value to be 4, second value can be .jpg, .png, etc.
  • model - which model will be used for optimizing - vgg16 or vgg19
  • optimizer - which optimizer will model use - currently only adam is supported
  • init_method - initialization method for image - content orrandom
  • iterations - number of iterations/epochs for training - int number, eg. 400

neural-style-transform's People

Contributors

pjotrvr avatar

Watchers

 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.