24d6018ac120b75d91d94f2a238ac9f1c0bfbd71,hypergan/gans/aligned_interpolate_gan.py,AlignedInterpolateGAN,forward_discriminator,#AlignedInterpolateGAN#Any#,39

Before Change


        self.gammas = [torch.Tensor([self.config.interpolate]).float()[0].cuda(), torch.Tensor([1.-self.config.interpolate]).float()[0].cuda()]

    def forward_discriminator(self, inputs):
        return self.discriminator(inputs[0])*self.gammas[0] + self.discriminator(inputs[1]) * self.gammas[1]

    def forward_pass(self):
        self.x = self.inputs.next()

After Change


        self.gammas = [torch.Tensor([self.config.interpolate]).float()[0].cuda(), torch.Tensor([1.-self.config.interpolate]).float()[0].cuda()]

    def forward_discriminator(self, inputs):
        d0 = self.discriminator(inputs[0])
        d1 = self.discriminator2(inputs[1])
        return self.sigmoid(d1)*d0*self.gammas[0]  + self.sigmoid(d0)*d1*self.gammas[1]

    def forward_pass(self):
        self.x = self.inputs.next()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 24d6018ac120b75d91d94f2a238ac9f1c0bfbd71
Time: 2020-07-26
Author: mikkel@255bits.com
File Name: hypergan/gans/aligned_interpolate_gan.py
Class Name: AlignedInterpolateGAN
Method Name: forward_discriminator


Project Name: HyperGAN/HyperGAN
Commit Name: a721b017842af489be2a67f91184256ebe363edf
Time: 2020-07-12
Author: mikkel@255bits.com
File Name: hypergan/gans/aligned_gan.py
Class Name: AlignedGAN
Method Name: forward_discriminator


Project Name: eriklindernoren/PyTorch-GAN
Commit Name: f37d0f2da815d3674dbba5ef1d8711357348c94f
Time: 2018-05-07
Author: eriklindernoren@live.se
File Name: implementations/wgan/wgan.py
Class Name:
Method Name: