eriklindernoren / Keras-GAN

Keras implementations of Generative Adversarial Networks.
MIT License
9.18k stars 3.14k forks source link

Discriminator sigmoid activation? #138

Closed Ouwen closed 5 years ago

Ouwen commented 5 years ago

https://github.com/eriklindernoren/Keras-GAN/blob/b817bb68993e21cdcf4581798b371b29dd0d90f2/cyclegan/cyclegan.py#L140-L159

I was wondering if there should be a sigmoid activation on the validity convolution.

eriklindernoren commented 5 years ago

I'm using a least squares adversarial objective, and therefore the discriminators have a linear activation on the output layer. You can find more information about this in the LSGAN paper https://arxiv.org/abs/1611.04076.

Ouwen commented 5 years ago

Interesting paper, thanks for sharing!