Shortcuts

mmedit.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[, ...])

mmedit.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 (nn.Module) – 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

mmedit.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
master
latest
stable
zyh-doc-notfound-extend
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.