Shortcuts

mmagic.models.editors.stylegan1.stylegan_utils

Module Contents

Functions

get_mean_latent(generator[, num_samples, bs_per_repeat])

Get mean latent of W space in Style-based GANs.

style_mixing(generator, n_source, n_target[, ...])

mmagic.models.editors.stylegan1.stylegan_utils.get_mean_latent(generator, num_samples=4096, bs_per_repeat=1024)[源代码]

Get mean latent of W space in Style-based GANs.

参数
  • 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.

返回

Mean latent of this generator.

返回类型

Tensor

mmagic.models.editors.stylegan1.stylegan_utils.style_mixing(generator, n_source, n_target, inject_index=1, truncation_latent=None, truncation=0.7, style_channels=512, **kwargs)[源代码]
Read the Docs v: latest
Versions
latest
stable
0.x
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.