Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Real and fake reversed in AAE #34

Closed
plaut opened this issue May 8, 2018 · 1 comment
Closed

Real and fake reversed in AAE #34

plaut opened this issue May 8, 2018 · 1 comment

Comments

@plaut
Copy link

plaut commented May 8, 2018

In the adversarial autoencoder, lines 139 and 141 are:
latent_fake = self.encoder.predict(imgs)
latent_real = np.random.normal(size=(half_batch, self.encoded_dim))
Shouldn't this be reversed?

@eriklindernoren
Copy link
Owner

eriklindernoren commented May 8, 2018

The encoder is trained to find an embedding of the data that mirrors a normal distribution. Samples from a normal distribution are used as real examples for the discriminator and encoded images are used a false examples. The encoder is trained to fool the discriminator into labeling the encoded images as having been sampled from a normal distribution.

@plaut plaut closed this as completed May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants