Skip to content

Latest commit

 

History

History
 
 

dcgan

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

PyTorch Implementation of DCGAN

Prerequisites

  • PyTorch
  • torchvision

Training

  • Train on MNIST
    python dcgan.py --cuda --dataset MNIST
    
  • Train on CIFAR
    python dcgan.py --cuda --dataset CIFAR
    

Train on CPU: leave out the --cuda parameter

Generate

  • Generate MNIST
    python generate.py --netG dcgan/MNIST.pth --batchSize 100 --dataset MNIST
    
  • Generate CIFAR
    python generate.py --netG dcgan/CIFAR.pth --batchSize 100 --dataset CIFAR
    

MNIST CIFAR

Reference

  1. https://github.com/yunjey/pytorch-tutorial
  2. https://github.com/pytorch/examples