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 input parameters of the Generator #42

Open
linziqu opened this issue Sep 21, 2022 · 1 comment
Open

The input parameters of the Generator #42

linziqu opened this issue Sep 21, 2022 · 1 comment

Comments

@linziqu
Copy link

linziqu commented Sep 21, 2022

Hi, thanks for your great work!

I am curious about all the input parameters such as 'noise_mode', 'force_fp' of self.G.synthesis(w, noise_mode='const', force_fp32=True).
And I also want to know how to return the featrures of each layer in the self.G.

Thanks

@danielroich
Copy link
Owner

Hi @linziqu,
The 'noise mode' indicates how the noise injected into StyleGAN behaves. StyleGAN actually receives 2 inputs. The latent code and a noise vector can be seen in the original paper. The force_fp handles the float operations when computed in the generator. You can read more in the official documentation "https://github.com/NVlabs/stylegan2-ada-pytorch".

Regarding the features - you can access the StyleGAN layers and thus the weights directly as any other NN in PyTorch. But again I highly recommend reading the official documentation for further instructions.

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