chainer-DCGAN icon indicating copy to clipboard operation
chainer-DCGAN copied to clipboard

Why is tanh not used as activation at the last layer of generator?

Open sidak opened this issue 8 years ago • 2 comments

The DCGAN paper mentions about the use of tanh. Is there any reason why it is not used? What is the difference in the results in both cases.

Thank you.

sidak avatar Jul 05 '16 08:07 sidak

@mattya More specifically in the below line of code.

x = (self.dc4(h))

sidak avatar Jul 05 '16 08:07 sidak

the last layer in the generator is tanh because it making value between -1 and 1. and make over the network is more stable in the case of color image and video.

praveenkumarchandaliya avatar Aug 29 '18 03:08 praveenkumarchandaliya