Created
June 6, 2019 05:56
-
-
Save ethanyanjiali/5183df4b7414df88c45c22fd2cd9ba20 to your computer and use it in GitHub Desktop.
cyclegan optimizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gen_lr_scheduler = LinearDecay(LEARNING_RATE, EPOCHS * total_batches, DECAY_EPOCHS * total_batches) | |
dis_lr_scheduler = LinearDecay(LEARNING_RATE, EPOCHS * total_batches, DECAY_EPOCHS * total_batches) | |
optimizer_gen = tf.keras.optimizers.Adam(gen_lr_scheduler, BETA_1) | |
optimizer_dis = tf.keras.optimizers.Adam(dis_lr_scheduler, BETA_1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment