9ae3f7ec8f064f4d0fbf84d23455a8039bcbb390,shared/gan.py,,discriminator_pyramid,#Any#Any#Any#Any#Any#,395

Before Change


    filter_size_w = int(result.get_shape()[1])
    filter_size_h = int(result.get_shape()[2])
    filter = [1,filter_size_w,filter_size_h,1]
    stride = [1,filter_size_w,filter_size_h,1]
    result = tf.nn.max_pool(result, ksize=filter, strides=stride, padding="SAME")

    result = batch_norm(config["batch_size"], name="d_expand_bn_end_"+str(i))(result)
    result = activation(result)

After Change


      result = activation(result)
      // APPEND xs[i] and gs[i]
      xg = tf.concat(0, [xs[i+1], gs[i+1]])
      xg += tf.random_normal(xg.get_shape(), mean=0, stddev=config["d_noise"], dtype=config["dtype"])

      print("+++++",result, xg, "____")
      xg = conv2d(xg, 4*(i+1), name="d_add_xg"+str(i), k_w=1, k_h=1, d_h=1, d_w=1)
      xg = batch_norm(config["batch_size"], name="d_add_xg_bn_"+str(i))(xg)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: HyperGAN/HyperGAN
Commit Name: 9ae3f7ec8f064f4d0fbf84d23455a8039bcbb390
Time: 2016-10-21
Author: martyn.garcia@gmail.com
File Name: shared/gan.py
Class Name:
Method Name: discriminator_pyramid


Project Name: NifTK/NiftyNet
Commit Name: f3f323b0dc2917304d2512dc68fb57aecdb1a6d4
Time: 2017-08-08
Author: eli.gibson@gmail.com
File Name: niftynet/network/simulator_gan.py
Class Name: ImageGenerator
Method Name: layer_op


Project Name: rail-berkeley/softlearning
Commit Name: 2966f198b8d1792a69a7251d555c8e514941880c
Time: 2018-05-22
Author: kristian.hartikainen@gmail.com
File Name: sac/distributions/real_nvp.py
Class Name:
Method Name: feedforward_net