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

The output of the generator * 0.58 + 0.5 #2

Open
ligua opened this issue Mar 13, 2019 · 1 comment
Open

The output of the generator * 0.58 + 0.5 #2

ligua opened this issue Mar 13, 2019 · 1 comment
Assignees

Comments

@ligua
Copy link

ligua commented Mar 13, 2019

May I ask why the output of the generator is multiplied with 0.58 , and then added by 0.5?

Thank you so much and best regards

@shadow2496 shadow2496 self-assigned this Mar 31, 2019
@shadow2496
Copy link
Owner

shadow2496 commented Mar 31, 2019

Thank you for using our repo and sorry for the late reply.

The architecture of generators in WESPE was adapted from DPED which is the authors' previous paper, and it uses nn.Tanh() as the last activation function. nn.Tanh() maps the resulting values into the range (-1, 1), but it should be (0, 1) to get images as an output, thus we use the formula nn.Tanh() * 0.58 + 0.5.
The reason we multiply by 0.58 instead of 0.5 is that it has an effect of narrowing the range of possible input for nn.Tanh() and make the generators learn easily.

Below is a link you can refer:
aiff22/DPED#13

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