Skip to content

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

Description

@wztdream

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions