84b912e4af76896c27b79fea622a1c9e1f68d08d,hypergan/discriminators/base_discriminator.py,BaseDiscriminator,layer_filter,#BaseDiscriminator#Any#Any#Any#,76

Before Change


        gan = self.gan
        ops = self.ops

        stacks = ops.shape(net)[0] // gan.batch_size()
        split_shape = ops.shape(net)
        split_shape[-1] = gan.channels()
        split_shape[0] //= stacks
        enhancers = gan.skip_connections.get_array("progressive_enhancement", split_shape)
        concats = [net]

        // progressive enhancement

After Change


            x = self.add_noise(self.gan.inputs.x)
            x = tf.image.resize_images(x,new_shape, 1) //TODO what if the input is user defined? i.e. 2d test
            size = [ops.shape(net)[1], ops.shape(net)[2]]
            enhancers = [tf.image.resize_images(enhance, size, 1) for enhance in enhancers]
            enhance = tf.concat(axis=0, values=[x]+enhancers)

            // progressive growing
            if config.progressive_growing:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 84b912e4af76896c27b79fea622a1c9e1f68d08d
Time: 2017-11-02
Author: martyn@255bits.com
File Name: hypergan/discriminators/base_discriminator.py
Class Name: BaseDiscriminator
Method Name: layer_filter


Project Name: HyperGAN/HyperGAN
Commit Name: 54e7e978f4c3ab3c100c8a8f4dfcecf86274f513
Time: 2017-06-08
Author: martyn@255bits.com
File Name: hypergan/losses/base_loss.py
Class Name: BaseLoss
Method Name: split_batch


Project Name: HyperGAN/HyperGAN
Commit Name: 7066c72279f2fd0f5d0a6b7c3c57e5398dfe7813
Time: 2018-12-05
Author: mikkel@255bits.com
File Name: examples/colorizer.py
Class Name: Sampler
Method Name: sample