080700865e68f22295b296e097032baa89231d99,models/experimental/resnet_bfloat16/resnet_preprocessing.py,,distorted_bounding_box_crop,#Any#Any#Any#Any#Any#Any#Any#,69
Before Change
// bounding box. If no box is supplied, then we assume the bounding box is
// the entire image.
sample_distorted_bounding_box = tf.image.sample_distorted_bounding_box(
tf.shape(image) ,
bounding_boxes=bbox,
min_object_covered=min_object_covered,
aspect_ratio_range=aspect_ratio_range,
After Change
offset_y, offset_x, _ = tf.unstack(bbox_begin)
target_height, target_width, _ = tf.unstack(bbox_size)
crop_window = tf.stack([offset_y, offset_x, target_height, target_width])
cropped_image = tf.image.decode_and_crop_jpeg(image, crop_window)
cropped_image = tf.image.convert_image_dtype(
cropped_image, dtype=tf.float32)
return cropped_image, distort_bbox
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: tensorflow/tpu
Commit Name: 080700865e68f22295b296e097032baa89231d99
Time: 2018-04-13
Author: huangyp@google.com
File Name: models/experimental/resnet_bfloat16/resnet_preprocessing.py
Class Name:
Method Name: distorted_bounding_box_crop
Project Name: tensorflow/tpu
Commit Name: 080700865e68f22295b296e097032baa89231d99
Time: 2018-04-13
Author: huangyp@google.com
File Name: models/official/resnet/resnet_preprocessing.py
Class Name:
Method Name: distorted_bounding_box_crop
Project Name: GPflow/GPflow
Commit Name: bd1e9c04b48dd5ccca9619d5eaa2595a358bdb08
Time: 2020-01-31
Author: st--@users.noreply.github.com
File Name: gpflow/kernels/statics.py
Class Name: White
Method Name: K