- PyTorch
- torchvision
- 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 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