co-mod-gan icon indicating copy to clipboard operation
co-mod-gan copied to clipboard

What if the output layer of the generator is activated by "tanh" ?

Open MenSanYan opened this issue 3 years ago • 2 comments

Hi, I notice that the last layer of the generator is activated by "linear", etc., the range of pixel values might stretch across (-infinite, +infinite) interval. Is there any advice or reasons for using "tanh" instead of "linear", so that pixel values is limited to (-1, +1) interval.

MenSanYan avatar Jun 17 '21 06:06 MenSanYan

I remember that StyleGAN's authors have tried tanh but they did not find improvements.

zsyzzsoft avatar Jun 19 '21 16:06 zsyzzsoft

I saw an explanation there looks reasonable https://github.com/taki0112/StyleGAN-Tensorflow/issues/5

zengxianyu avatar Jun 20 '21 11:06 zengxianyu