Пример #1
0
 def discriminator_factory(type, b_size, h, scale_size, num_channels):
     if type == 'gan':
         return gan_cls.discriminator()
     elif type == 'wgan':
         return wgan_cls.discriminator()
     elif type == 'vanilla_gan':
         return gan.discriminator()
     elif type == 'vanilla_wgan':
         return wgan.discriminator()
     elif type == 'began':
         return began.Discriminator(b_size, h, scale_size, num_channels)
     elif type == 'acgan':
         return acgan.discriminator()
     elif type == 'segan':
         return gan_cls.discriminator()
Пример #2
0
 def discriminator_factory(type):
     if type == 'gan':
         return gan_cls.discriminator()
     elif type == 'wgan':
         return wgan_cls.discriminator()
     elif type == 'vanilla_gan':
         return gan.discriminator()
     elif type == 'vanilla_wgan':
         return wgan.discriminator()
Пример #3
0
 def discriminator_factory(type):
     if type == 'gan':
         return gan_cls.discriminator()
     elif type == 'wgan':
         return wgan_cls.discriminator()
     elif type == 'vanilla_gan':
         return gan.discriminator()
     elif type == 'vanilla_wgan':
         return wgan.discriminator()
     elif type == 'inverse_gan':
         return gan_inverse.discriminator_inverse()
     elif type == 'stage2_gan':
         return gan_cls.discriminator2()
Пример #4
0
 def discriminator_factory(type):
     if type == 'gan':
         return gan_cls.discriminator()
     elif type == 'stage2_gan':
         return gan_cls.discriminator2()