Last active
February 10, 2019 17:54
-
-
Save NMZivkovic/caf2255a636fc5cced1102684ba61b0d to your computer and use it in GitHub Desktop.
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
def __init__(self, image_shape, cycle_lambda, image_hepler): | |
self.optimizer = Adam(0.0002, 0.5) | |
self.cycle_lambda = cycle_lambda | |
self.id_lambda = 0.1 * self.cycle_lambda | |
self._image_helper = image_hepler | |
self.img_shape = image_shape | |
# Calculate output shape | |
patch = int(self.img_shape[0] / 2**4) | |
self.disc_patch = (patch, patch, 1) | |
print("Build Discriminators...") | |
self._discriminatorX = self._build_discriminator_model() | |
self._compile_discriminator_model(self._discriminatorX) | |
self._discriminatorY = self._build_discriminator_model() | |
self._compile_discriminator_model(self._discriminatorY) | |
print("Build Generators...") | |
self._generatorXY = self._build_generator_model() | |
self._generatorYX = self._build_generator_model() | |
print("Build GAN...") | |
self._build_and_compile_gan() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment