ESRGANDiscriminator#

class deepinv.models.ESRGANDiscriminator(img_size)[source]#

Bases: Module

ESRGAN Discriminator.

The ESRGAN discriminator model was originally proposed by Wang et al.[1]. Implementation taken from edongdongchen/EI.

See Imaging inverse problems with adversarial networks for how to use this for adversarial training.

Parameters:

img_size (tuple) – shape of input image


References:

forward(x)[source]#

Forward pass of discriminator model.

Parameters:

x (torch.Tensor) – input image