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

Before Change


// run scipy-based optimization (L-BFGS) over the pixels of the generated image
// so as to minimize the neural style loss
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()
    x, min_val, info = fmin_l_bfgs_b(evaluator.loss, x.flatten(),

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: 4

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: ray-project/ray
Commit Name: 088f8ebb69e21c7759af44c6d207a266f4a5d175
Time: 2020-09-07
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/examples/skopt_example.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: 2fac66650d131b93041836c1566587a7a4800af6
Time: 2020-09-04
Author: krfricke@users.noreply.github.com
File Name: python/ray/tune/examples/bayesopt_example.py
Class Name:
Method Name: