Model hyperparameters

We can fine-tune the GANs by changing the following set of hyperparameters:

# size of discriminator input image
#28 by 28 will flattened to be 784
input_img_size = 784

# size of the generator latent vector
gen_z_size = 100

# number of hidden units for the generator and discriminator hidden layers
gen_hidden_size = 128
disc_hidden_size = 128

#leaky ReLU alpha parameter which controls the leak of the function
leaky_relu_alpha = 0.01

# smoothness of the label
label_smooth = 0.1
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset