9a30bb661ffbf93d095c48d2ba7971f88c10eb38,official/resnet/vgg_preprocessing.py,,preprocess_image,#Any#Any#Any#Any#Any#Any#,336

Before Change


    A preprocessed image.
  
  if is_training:
    return preprocess_for_train(image, output_height, output_width,
                                resize_side_min, resize_side_max)
  else:
    return preprocess_for_eval(image, output_height, output_width,
                               resize_side_min)

After Change


  image.set_shape([output_height, output_width, num_channels])

  image = tf.cast(image, tf.float32)
  return _mean_image_subtraction(image, [_R_MEAN, _G_MEAN, _B_MEAN])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: tensorflow/models
Commit Name: 9a30bb661ffbf93d095c48d2ba7971f88c10eb38
Time: 2018-02-16
Author: karmel@arcaio.com
File Name: official/resnet/vgg_preprocessing.py
Class Name:
Method Name: preprocess_image


Project Name: tensorflow/tpu
Commit Name: 2f8658fbb6e0a545f18618b6238936280f80382c
Time: 2017-10-02
Author: frankchn@google.com
File Name: cloud_tpu/models/resnet_garden/vgg_preprocessing.py
Class Name:
Method Name: preprocess_for_eval


Project Name: tensorflow/tpu
Commit Name: 2f8658fbb6e0a545f18618b6238936280f80382c
Time: 2017-10-02
Author: frankchn@google.com
File Name: cloud_tpu/models/resnet_garden/vgg_preprocessing.py
Class Name:
Method Name: preprocess_for_train