mmagic.models.editors.stylegan1.stylegan_utils
¶
Module Contents¶
Functions¶
|
Get mean latent of W space in Style-based GANs. |
|
- mmagic.models.editors.stylegan1.stylegan_utils.get_mean_latent(generator, num_samples=4096, bs_per_repeat=1024)[source]¶
Get mean latent of W space in Style-based GANs.
- Parameters
generator (BaseModule) – Generator of a Style-based GAN.
num_samples (int, optional) – Number of sample times. Defaults to 4096.
bs_per_repeat (int, optional) – Batch size of noises per sample. Defaults to 1024.
- Returns
Mean latent of this generator.
- Return type
Tensor