January 2019
Intermediate to advanced
316 pages
8h 16m
English
Undertake the following steps to train the Stage-II StackGAN.
Start by specifying the hyperparameters for the training of the Stage-II StackGAN:
# Specify hyperparamtersdata_dir = "Path to the dataset/Data/birds"train_dir = data_dir + "/train"test_dir = data_dir + "/test"hr_image_size = (256, 256)lr_image_size = (64, 64)batch_size = 8z_dim = 100stage1_generator_lr = 0.0002stage1_discriminator_lr = 0.0002stage1_lr_decay_step = 600epochs = 10condition_dim = 128embeddings_file_path_train = train_dir + "/char-CNN-RNN-embeddings.pickle"embeddings_file_path_test = test_dir + "/char-CNN-RNN-embeddings.pickle"filenames_file_path_train = train_dir + "/filenames.pickle"filenames_file_path_test = test_dir + "/filenames.pickle" ...
Read now
Unlock full access