Git Product home page Git Product logo

ingan's Introduction

InGAN

Official code for the paper "InGAN: Capturing and Retargeting the DNA of a Natural Image"

Project page: http://www.wisdom.weizmann.ac.il/~vision/ingan/ (See our results and visual comparison to other methods)

Accepted ICCV'19 (Oral)

If you find our work useful in your research or publication, please cite our work:

@InProceedings{InGAN,
  author = {Assaf Shocher and Shai Bagon and Phillip Isola and Michal Irani},
  title = {InGAN: Capturing and Retargeting the "DNA" of a Natural Image},
  booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
  year = {2019}
}

Usage:

Test

Quick example

First you have to download the example checkpoint file, and put it in InGAN/examples/fruit/. Will defaulty run on the fruits image, using an existing checkpoint.

python test.py

General testing

By default, when testing you get a collage of various sizes and a smooth video of the transforms. You can also choose to test specific sizes, non-rectangular transforms and more.

See configs.py, for all the options. You can either edit this file or modify configuration from command-line. Examples:

python test.py --input_image_path /path/to/some/image.png  # choose input image
python test.py --test_non_rect  # also output non rectangular transformation results
python test.py --test_vid_scale 2.0, 0.5, 2.5, 0.2  # boundary scales for output video: [max_v, min_v, max_h, min_h]

Please see configs.py for many more options

Train

Quick example

Will defaulty run on the fruits image.

python train.py

General training

See configs.py for all the options. You can either edit this file or modify configuration from command-line. Examples:

python train.py --input_image_path /path/to/some/image.png  # choose input image
python train.py --G_num_resblocks 3  # change number of residual block in the generator

Please see configs.py for many more options

monitoring

In you results folder, monitor files will be periodically created, example:

Produce complex animations by scripts:

Please see the file supp_video.py

Parallel training for many images

Please see the file train_supp_mat.py

ingan's People

Contributors

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