f23f2ff2c96537274beb99aca8417f054f817501,examples/neural_style_transfer.py,,,#,282

Before Change


x = np.random.uniform(0, 255, (1, 3, img_width, img_height))
x[0, 0, :, :] -= 103.939
x[0, 1, :, :] -= 116.779
x[0, 2, :, :] -= 123.68
for i in range(10):
    print("Start of iteration", i)
    start_time = time.time()

After Change


if K.image_dim_ordering() == "th":
    x = np.random.uniform(0, 255, (1, 3, img_width, img_height)) - 128.
else:
    x = np.random.uniform(0, 255, (1, img_width, img_height, 3)) - 128.

for i in range(10):
    print("Start of iteration", i)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: f23f2ff2c96537274beb99aca8417f054f817501
Time: 2016-08-27
Author: francois.chollet@gmail.com
File Name: examples/neural_style_transfer.py
Class Name:
Method Name:


Project Name: pierluigiferrari/ssd_keras
Commit Name: 43ef74d705fbff26dcf4419ecbdf6478d593bf41
Time: 2018-03-11
Author: pierluigi.ferrari@gmx.com
File Name: data_generator/object_detection_2d_patch_sample_ops.py
Class Name: RandomPatch
Method Name: __call__


Project Name: NTMC-Community/MatchZoo
Commit Name: 1dd34a24af2c12c5bfb806c6b47b15e7b723251d
Time: 2019-01-09
Author: fanyixing111@hotmail.com
File Name: matchzoo/embedding.py
Class Name: Embedding
Method Name: build_matrix