Skip to content

Instantly share code, notes, and snippets.

@itsuncheng
Created July 26, 2020 03:53
Show Gist options
  • Select an option

  • Save itsuncheng/e45e915fbc79961959f9ea3c8e96d3a2 to your computer and use it in GitHub Desktop.

Select an option

Save itsuncheng/e45e915fbc79961959f9ea3c8e96d3a2 to your computer and use it in GitHub Desktop.
# Root directory for dataset
dataroot = "/home/ubuntu/cropped/"
# Number of workers for dataloader
workers = 2
# Batch size during training
batch_size = 128
# Spatial size of training images. All images will be resized to this
# size using a transformer.
image_size = 64
# Number of channels in the training images. For color images this is 3
nc = 3
# Size of z latent vector (i.e. size of generator input)
nz = 100
# Size of feature maps in generator
ngf = 64
# Size of feature maps in discriminator
ndf = 64
# Number of training epochs
num_epochs = 200
# Learning rate for optimizers
lr = 0.0002
# Beta1 hyperparam for Adam optimizers
beta1 = 0.5
# Number of GPUs available. Use 0 for CPU mode.
ngpu = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment