44874bed267e008be9bee5d85a4f4040b854d246,examples/images/dcgan.py,,,#,60

Before Change


        // Noise input.
        z = np.random.uniform(-1., 1., size=[1, z_dim])
        // Generate image from noise. Extend to 3 channels for matplot figure.
        temp = [[ii, ii, ii] for ii in list(gen.predict({"input_gen_noise": z})[0])]
        a[j][i].imshow(np.reshape(temp, (28, 28, 3)))
f.show()
plt.draw()
plt.waitforbuttonpress()

After Change


    g = np.array(gen.predict({"input_gen_noise": z}))
    for j in range(4):
        // Generate image from noise. Extend to 3 channels for matplot figure.
        img = np.reshape(np.repeat(g[j][:, :, np.newaxis], 3, axis=2),
                         newshape=(28, 28, 3))
        a[j][i].imshow(img)

f.show()
plt.draw()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: tflearn/tflearn
Commit Name: 44874bed267e008be9bee5d85a4f4040b854d246
Time: 2017-05-25
Author: aymeric.damien@gmail.com
File Name: examples/images/dcgan.py
Class Name:
Method Name:


Project Name: dmlc/gluon-cv
Commit Name: 960a107ad419d2690e352972950e76495deb1ad6
Time: 2019-03-18
Author: xinyu1.chen@intel.com
File Name: scripts/detection/ssd/eval_ssd.py
Class Name:
Method Name:


Project Name: ClimbsRocks/auto_ml
Commit Name: 71928897ddc96545ac7dcbca5f0a569658cd272d
Time: 2017-12-03
Author: climbsbytes@gmail.com
File Name: auto_ml/utils_feature_selection.py
Class Name: FeatureSelectionTransformer
Method Name: transform