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)