GithubHelp home page GithubHelp logo

dropthegan's Introduction

Drop The GAN:
In Defense of Patches Nearest Neighbors as Single Image Generative Models

Accepted to CVPR 2022 (oral)
Niv Granot   Ben Feinstein   Assaf Shocher   Shai Bagon   Michal Irani

This is the official repository for "Drop The GAN: In Defense of Patches Nearest Neighbors as Single Image Generative Models" (paper, project page).

A few examples of Drop the GAN applications.

Setup

Please create environment as follows:

conda create -f environment.yml

Run

To run the code, please do as follows:

conda activate dropthegan
python main.py <application> [<options>]

For example:

python main.py generation \
  --input-path="data/generation/balloons.png" \
  --output-path="out/generation/balloons.png"

You can list the applications by running:

python main.py --help

and to list the options for a given application by:

python main.py <application> --help

Parameters

  • Consider tuning parameters such as pyramid depth, alpha (i.e., completeness level), and noise standard-deviation for optimal results1.
  • By default, the first GPU in the machine will be used, unless there are no GPUs and then it will run on CPU. You can override this default by providing the --device flag (cuda:X for GPU #X, or cpu for CPU)2.

Footnotes

  1. A fixed set of parameters was used for the quantitative experiments in the paper.

  2. The runtime reported in the paper (2 seconds per generation) is for 250x180 images, running the generation application on a Tesla-V100 GPU.

dropthegan's People

Contributors

benfei avatar feinsteinben avatar granotniv avatar

Stargazers

Sean Stevens avatar JINGJUN TAO 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.