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 LeakyReLU layer after dense1 #17

Open
Walstruzz opened this issue Mar 27, 2020 · 1 comment
Open

the LeakyReLU layer after dense1 #17

Walstruzz opened this issue Mar 27, 2020 · 1 comment

Comments

@Walstruzz
Copy link

Walstruzz commented Mar 27, 2020

Hi, thanks for your reimplementation. It is so elegant.

But I found that you have a LeakyReLU layer after dense1, which does not exist in the tensorflow implementation.

x = F.leaky_relu(self.dense1(x), 0.2, inplace=True)

https://github.com/NVlabs/stylegan/blob/66813a32aac5045fcde72751522a0c0ba963f6f2/training/networks_stylegan.py#L617

I think that adding activation after the last fully connected layer is not a good idea.

@tomguluson92
Copy link
Owner

Thanks for pointing that problem, do you found that useful if removing this?

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