← Open Source
Zeleni9

pytorch-wgan

Pytorch implementation of DCGAN, WGAN-CP, WGAN-GP.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
809
Stars
147
Forks
+0
This week
7
Contributors
Created 2018-02-23 · Updated 2026-10-06 · #13600 today
Top developers
Zeleni9hsweifCharlesLiu7

Zeleni9/pytorch-wgan is ranked 13,600 with 809 stars.

Same-category comparison

Zeleni9/pytorch-wgan is ranked 13,600 among these 8 peers; XiaoMi/MiNLP is ranked 13,599.

Same-category comparison
NameRankMetrics
yiranran/APDrawingGAN13,586
Language:
Python
Stars:
811
Forks:
154
Description:
Code for APDrawingGAN: Generating Artistic Portrait Drawings from Face Photos with Hierarchical GANs (CVPR 2019 Oral).
rdevon/DIM13,594
Language:
Python
Stars:
810
Forks:
105
Description:
Deep InfoMax (DIM), or "Learning Deep Representations by Mutual Information Estimation and Maximization".
KevinCoble/AIToolbox13,596
Language:
Swift
Stars:
809
Forks:
86
Description:
A toolbox of AI modules written in Swift: Graphs/Trees, Support Vector Machines, Neural Networks, PCA, K-Means, Genetic Algorithms.
XiaoMi/MiNLP13,599
Language:
Scala
Stars:
809
Forks:
88
Description:
XiaoMi Natural Language Processing Toolkits.
locuslab/deq13,601
Language:
Python
Stars:
809
Forks:
90
Description:
[NeurIPS'19] Deep Equilibrium Models.
Alibaba-MIIL/ASL13,606
Language:
Python
Stars:
808
Forks:
102
Description:
Official Pytorch Implementation of: "Asymmetric Loss For Multi-Label Classification"(ICCV, 2021) paper.
ch-sa/labelCloud13,609
Language:
Python
Stars:
808
Forks:
134
Description:
A lightweight tool for labeling 3D bounding boxes in point clouds.
kpe/bert-for-tf213,610
Language:
Python
Stars:
808
Forks:
194
Description:
A Keras TensorFlow 2.0 implementation of BERT, ALBERT and adapter-BERT.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsImage production
Stars809
Forks147
Contributors7
Created date2018-02-23
Updated date2026-10-06
Stars in 1 day0
Stars in 7 days0
Rank13,600
Previous rank13,493
Rank change-107
7-day stars rank14,022
Previous 7-day stars rank14,040
7-day stars rank change18
Total stars rank13,225
Previous total stars rank13,204
Total stars rank change-21
README summary

Pytorch code for GAN models This is the pytorch implementation of 3 different GAN models using same convolutional architecture. DCGAN (Deep convolutional GAN) WGAN-CP (Wasserstein GAN using weight clipping) WGAN-GP (Wasserstein GAN using gradient penalty) Dependecies The prominent packages are: numpy scikit-learn tensorflow 2.

Frequently asked questions

How many stars and forks are recorded?

Zeleni9/pytorch-wgan has 809 stars and 147 forks.

What is the repository rank?

Zeleni9/pytorch-wgan is ranked 13,600.

What language and category are recorded?

Zeleni9/pytorch-wgan has 809 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

Zeleni9/pytorch-wgan is compared with XiaoMi/MiNLP, ranked 13,599 with 809 stars.

README

Pytorch code for GAN models

This is the pytorch implementation of 3 different GAN models using same convolutional architecture.

  • DCGAN (Deep convolutional GAN)
  • WGAN-CP (Wasserstein GAN using weight clipping)
  • WGAN-GP (Wasserstein GAN using gradient penalty)

Dependecies

The prominent packages are:

  • numpy
  • scikit-learn
  • tensorflow 2.5.0
  • pytorch 1.8.1
  • torchvision 0.9.1

To install all the dependencies quickly and easily you should use pip

pip install -r requirements.txt

Training

Running training of DCGAN model on Fashion-MNIST dataset:

python main.py --model DCGAN \
               --is_train True \
               --download True \
               --dataroot datasets/fashion-mnist \
               --dataset fashion-mnist \
               --epochs 30 \
               --cuda True \
               --batch_size 64

Running training of WGAN-GP model on CIFAR-10 dataset:

python main.py --model WGAN-GP \
               --is_train True \
               --download True \
               --dataroot datasets/cifar \
               --dataset cifar \
               --generator_iters 40000 \
               --cuda True \
               --batch_size 64

Start tensorboard:

tensorboard --logdir ./logs/

Walk in latent space

Interpolation between a two random latent vector z over 10 random points, shows that generated samples have smooth transitions.

         

Generated examples MNIST, Fashion-MNIST, CIFAR-10

Inception score

About Inception score

         

Useful Resources

Nearby in the ranking
Similar items