Shortcuts

mmedit.models.editors.ttsr.ttsr_disc

Module Contents

Classes

TTSRDiscriminator

A discriminator for TTSR.

class mmedit.models.editors.ttsr.ttsr_disc.TTSRDiscriminator(in_channels=3, in_size=160)[source]

Bases: mmengine.model.BaseModule

A discriminator for TTSR.

Parameters
  • in_channels (int) – Channel number of inputs. Default: 3.

  • in_size (int) – Size of input image. Default: 160.

forward(x)[source]

Forward function.

Parameters

x (Tensor) – Input tensor with shape (n, c, h, w).

Returns

Forward results.

Return type

Tensor

Read the Docs v: latest
Versions
master
latest
stable
zyh-re-docs
zyh-doc-notfound-extend
zyh-api-rendering
Downloads
pdf
epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.