cea52f3bbf3ccd4cbba0668eb5b92936c0606bc7,flowers/trainer/preprocess.py,TFExampleFromImageDoFn,process,#TFExampleFromImageDoFn#Any#,314

Before Change


    try:
      embedding = self.preprocess_graph.calculate_embedding(image_bytes)
    except errors.InvalidArgumentError as e:
      context.aggregate_to(incompatible_image, 1)
      logging.warning("Could not encode an image from %s: %s", uri, str(e))
      return

    if embedding.any():

After Change



    def _float_feature(value):
      return tf.train.Feature(float_list=tf.train.FloatList(value=value))
    try:
      element = element.element
    except AttributeError:
      pass
    uri, label_ids, image_bytes = element

    try:
      embedding = self.preprocess_graph.calculate_embedding(image_bytes)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: cea52f3bbf3ccd4cbba0668eb5b92936c0606bc7
Time: 2017-02-10
Author: andreasst@google.com
File Name: flowers/trainer/preprocess.py
Class Name: TFExampleFromImageDoFn
Method Name: process


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: cea52f3bbf3ccd4cbba0668eb5b92936c0606bc7
Time: 2017-02-10
Author: andreasst@google.com
File Name: flowers/trainer/preprocess.py
Class Name: ExtractLabelIdsDoFn
Method Name: process


Project Name: GoogleCloudPlatform/cloudml-samples
Commit Name: cea52f3bbf3ccd4cbba0668eb5b92936c0606bc7
Time: 2017-02-10
Author: andreasst@google.com
File Name: flowers/trainer/preprocess.py
Class Name: ReadImageAndConvertToJpegDoFn
Method Name: process