Code Monkey home page Code Monkey logo

rsr's Introduction

RSR

  • Source code for "Run-Sort-ReRun: Escaping Batch Size Limitations in Sliced Wasserstein Generative Models, J. Lezama, W. Chen, Q. Qiu, ICML 2021"

  • This repository contains PyTorch source code to run the toy example in Figure 1 of the paper and CIFAR-10 results in Tables 1 and 2 and Figure 3.

  • Toy Example (Figure 1):

    • run rsr_toy.py
      • optionally, set large_batch_size to 4 to simulate Wasserstein distance on 4 samples (3rd subfigure)
  • CIFAR10 Example:

    • Based on github repos: Yuantian013/E2GAN (included), mseitzer/pytorch-fid (included)
    • Download pretrained E2GAN baseline from this link
    • Execute run_training.sh or python rsr-features.py for training (inside cifar10)
    • E2GAN model fine-tuned with RunSort-ReRun available at this link
  • StyleGAN2 Example:

    • Based on github repos: rosinality/stylegan2-pytorch (included)
    • Download converted pretrained StyleGAN2 baseline from this link. (It can also be obtained following the instruction of rosinality/stylegan2-pytorch)
    • Download LSUN church using this link, and place it at stylegan/.data/church/
    • Download the stats of LSUN church from this link
    • Execute run.sh or python rsr-features.py for training (inside stylegan)
    • StyleGAN2 model fine-tuned with RunSort-ReRun available at this link, place it at stylegan/weights/

rsr's People

Contributors

jlezama avatar weichennone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.