f1752fedd2cf65ff998edc78586f7a08be9e97d5,scripts/tf_cnn_benchmarks/preprocessing.py,COCOPreprocessor,preprocess,#COCOPreprocessor#Any#,953

Before Change


      return (image, encoded_boxes, encoded_classes, num_matched_boxes)

    else:
      image = tf.image.resize_images(
          image[tf.newaxis, :, :, :],
          size=(ssd_constants.IMAGE_SIZE, ssd_constants.IMAGE_SIZE)
      )[0, :, :, :]

After Change


      return (image, encoded_boxes, encoded_classes, num_matched_boxes)

    else:
      image = tf.image.resize_images(
          image, size=(ssd_constants.IMAGE_SIZE, ssd_constants.IMAGE_SIZE))
      // resize_image returns image of dtype float32 and does not change its
      // range. Divide by 255 to convert image to [0, 1] range.
      image /= 255.

      image = ssd_dataloader.normalize_image(image)
      image = tf.cast(image, self.dtype)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: tensorflow/benchmarks
Commit Name: f1752fedd2cf65ff998edc78586f7a08be9e97d5
Time: 2018-10-25
Author: haoyuzhang@google.com
File Name: scripts/tf_cnn_benchmarks/preprocessing.py
Class Name: COCOPreprocessor
Method Name: preprocess


Project Name: deepfakes/faceswap
Commit Name: 3c9a0f9e53742ae95b394e2016b1a3a391049d77
Time: 2021-03-01
Author: 36920800+torzdf@users.noreply.github.com
File Name: lib/model/layers.py
Class Name: KResizeImages
Method Name: call


Project Name: HyperGAN/HyperGAN
Commit Name: cddbbb32c7aaa8e3bde52a4f254cbe7a21840739
Time: 2017-09-28
Author: mikkel@255bits.com
File Name: hypergan/discriminators/base_discriminator.py
Class Name: BaseDiscriminator
Method Name: layer_filter