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

What is the rationale behind sampling from the normal distribution for the W latent code, which is not a normal distribution at all? #107

Open
wztdream opened this issue Jun 12, 2023 · 0 comments

Comments

@wztdream
Copy link

Hi,
In the lines below, you use randn, which represents a normal distribution, to sample latent code for W space. It appears to be unreasonable since W space is not a normal distribution. Can you please explain why this approach is used despite that? Additionally, it seems to be effective. Could you provide an explanation for its success? Moreover, why not first sample from a normal distribution and then map it to W space, which seems more reasonable?

elif latent_space_type == 'W':
latent_codes = np.random.randn(num, self.w_space_dim)

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

1 participant