Module google/compare_gan/model_10_lsun_bedroom_resnet19/1

ResNet19 trained on LSUN Bedroom (FID: 40.36).

Module URL:

Open Colab notebok


ResNet19 generator and discriminator.

For the details of the setup, please refer to [1]. The code used to train these models is available on GitHub. View all available compare_gan modules in the Colab notebook.


  • Dataset: LSUN Bedroom
  • Model: Non-saturating GAN
  • Architecture: ResNet19
  • Optimizer: Adam (lr=1.281e-04, beta1=0.711, beta2=0.979)
  • Discriminator iterations per generator iteration: 1
  • Discriminator normalizaton: Layer normalization
  • Discriminator regularization: WGAN Gradient Penalty (lambda=0.145)


  • FID: 40.36
  • Inception: 3.92
  • MS-SSIM: N/A

Example use

# Declare the module
gan = hub.Module("")

# Use the generator signature
z_values = tf.random_uniform(minval=-1, maxval=1, shape=[64, 128])
images = gan(z_values, signature="generator")

# Use the discriminator signature
logits = gan(images, signature="discriminator")

# Drive execution with tf.Session[images, logits])


[1] Karol Kurach, Mario Lucic, Xiaohua Zhai, Marcin Michalski, Sylvain Gelly. The GAN Landscape: Losses, Architectures, Regularization, and Normalization.