2fe3e4ea9758e4e425bdda103c17aef17c59d9b2,hypergan/generators/resize_conv_generator.py,ResizeConvGenerator,create,#ResizeConvGenerator#Any#,34

Before Change


            is_last_layer = (i == len(depths)-1)

            depth = gan.config.channels if is_last_layer else depth
            resize = [min(s[1]*2, x_dims[0]), min(s[2]*2, x_dims[1])]

            net = ops.resize_images(net, resize, config.resize_image_type or 1)
            net = self.layer_filter(gan, config, net)

After Change


            print("PRE depth is ", depth, s)
            depth = gan.channels() if is_last_layer else depth
            print("depth is ", depth, s)
            resize = [min(s[1]*2, gan.height()), min(s[2]*2, gan.width())]

            net = ops.resize_images(net, resize, config.resize_image_type or 1)
            net = self.layer_filter(gan, config, net)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 2fe3e4ea9758e4e425bdda103c17aef17c59d9b2
Time: 2017-06-03
Author: martyn@255bits.com
File Name: hypergan/generators/resize_conv_generator.py
Class Name: ResizeConvGenerator
Method Name: create


Project Name: HyperGAN/HyperGAN
Commit Name: 365c861ccac7588596907b0cff8ddf69cc7a966c
Time: 2020-07-27
Author: mikkel@255bits.com
File Name: hypergan/samplers/grid_sampler.py
Class Name: GridSampler
Method Name: _sample


Project Name: HyperGAN/HyperGAN
Commit Name: 8a3148f6f973652500853e656274e65070edaf7e
Time: 2017-06-03
Author: martyn@255bits.com
File Name: hypergan/generators/resize_conv_generator.py
Class Name: ResizeConvGenerator
Method Name: depths