项目作者: nimRobotics

项目描述 :
GAN and its variants
高级语言: Python
项目地址: git://github.com/nimRobotics/GANs.git
创建时间: 2020-05-10T09:20:55Z
项目社区:https://github.com/nimRobotics/GANs

开源协议:MIT License

下载


GANs

This repo contains the implementations for GAN, WGAN, and DCGAN. This was done as a course project and the slides are available here.

Author(s): Aakash Yadav

Usage

To run

  • GAN with MNIST: python3 gan.py
  • WGAN with MNIST: python3 wgan.py
  • DC GAN with custom face dataset: python3 dcgan.py --dataset folder --cuda --dataroot faces_dir --niter 300 --outf output_dir

To plot the metrics

  1. import load_met
  2. metrics,d_losses,g_losses=load_met.load_data("outputs_wgan")
  3. import plot_met
  4. plot_met.plot_data(metrics,d_losses,g_losses)

Dataset

  • MNIST
  • Custom Face Dataset (Not available publicly)

Directory structure

  1. .
  2. +-- LICENSE
  3. +-- README.md
  4. +-- requirements.txt
  5. +-- face_dir
  6. | +-- train
  7. | +-- test
  8. +-- gan.py
  9. +-- wgan.py
  10. +-- dcgan.py
  11. +-- create_dataset.py
  12. +-- metric.py
  13. +-- load_met.py
  14. +-- plot_met.py

Requirements

  • Python 3.6.9
  • Other dependencies can be installed using pip3 install -r requirements.txt

TODO

  • ReadMe
  • Refactor
  • Jupyter Notebook