Counting 3,663 Big Data & Machine Learning Frameworks, Toolsets, and Examples...
Suggestion? Feedback? Tweet @stkim1

Last Commit
Mar. 22, 2019
Sep. 20, 2018


Project Status: Active – The project has reached a stable, usable state and is being actively developed. Build Status Build status License Slack Stable Documentation Latest Documentation codecov Binder PyPI version

TorchGAN is a Pytorch based framework for designing and developing Generative Adversarial Networks. This framework has been designed to provide building blocks for popular GANs and also to allow customization for cutting edge research. Using TorchGAN's modular structure allows

  • Trying out popular GAN models on your dataset.
  • Plug in your new Loss Function, new Architecture, etc. with the traditional ones.
  • Seamlessly visualize the training with a variety of logging backends.


Using pip (for stable release):

  $ pip3 install torchgan

Using pip (for latest master):

  $ pip3 install git+

From source:

  $ git clone
  $ cd torchgan
  $ python install


The documentation is available here

The documentation for this package can be generated locally.

  $ git clone
  $ cd torchgan/docs
  $ pip install -r requirements.txt
  $ make html

Now open the corresponding file from build directory.


We appreciate all contributions. If you are planning to contribute bug-fixes, please do so without any further discussion. If you plan to contribute new features, utility functions or extensions, please first open an issue and discuss the feature with us. For more detailed guidelines head over to the official documentation.


The examples directory contain a set of tutorials to get you started with torchgan. Some of these notebooks are available on Google Colab (they are linked in the tutorials themselves). Additionally, these tutorials can be tried out using the binder link provided.


This package has been developed by

  • Avik Pal (@avik-pal)
  • Aniket Das (@Aniket1998)

We appreciate all contributors. For a full list of contributors go here.