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

@wztdream

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)

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