Git Product home page Git Product logo

slimgan's Introduction

Slimmable Generative Adversarial Networks

This is a PyTorch implementation of Slimmable Generative Adversarial Networks.

SlimGAN

Requirements

The code has been tested running under Python 3.6.8, with the following packages installed (along with their dependencies):

pip install -r requirements.txt

Usage

First, please enter the examples directory .

To run the individual GANs, we give the following example script.

  • SNDCGAN on CIFAR-10 with 1.0x width.
python baseline.py --dataset cifar10 --arch dcgan --width_mult_g 1.00 --width_mult_d 1.00 --setting C --n_steps 100000 --loss hinge --log_dir ./logs/gan_cifar10_dcgan_wg100_wd100

To run the SlimGAN, we give the following example scripts.

  • SNResGAN (ResNet) based SlimGAN on CIFAR-10
python main.py --dataset cifar10 --arch resnet --setting G --alpha 20 --stepwise --n_share 2 --log_dir ./logs/slimgan_cifar10_resnet_alpha20_stepwise_nshare2
  • cGANpd based SlimGAN on CIFAR-10
python main.py --dataset cifar10 --arch resnet --setting G --cond --alpha 10 --stepwise --n_share 2 --log_dir ./logs/slimgan_cifar10_cganpd_alpha10_stepwise_nshare2

Cite

If you use this code, please cite

@inproceedings{hou2021slimmable,
  title={Slimmable Generative Adversarial Networks},
  author={Hou, Liang and Yuan, Zehuan and Huang, Lei and Shen, Huawei and Cheng, Xueqi and Wang, Changhu},
  booktitle={Proceedings of the AAAI Conference on Artificial Intelligence},
  volume={35},
  number={9},
  pages={7746--7753},
  year={2021}
}

Acknowledgments

This repository is developed based on mimicry and slimmable_networks.

slimgan's People

Watchers

James Cloos 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.