mirror of
https://github.com/TencentARC/GFPGAN.git
synced 2026-04-26 15:52:04 +00:00
tanh activation #211
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @g-luo on GitHub (Jul 22, 2022).
Hi, I was curious why in the implementation of GFPGAN there is no final tanh activation to keep generator outputs constrained between [-1, 1]; is there a reason why / could GFPGAN possibly benefit from such an activation?
@g-luo commented on GitHub (Jul 22, 2022):
Additionally, what is the intuition for detaching the fake output when training the discriminator (see code)?