d52eb0bf3d6df25c70933321a841dac157806479,luminoth/models/ssd/ssd_utils.py,,adjust_bboxes,#Any#Any#Any#Any#Any#,5

Before Change


        Tensor with shape (num_bboxes, 4), with the adjusted bboxes.
    
    // We normalize bounding boxes points.
    bboxes_float = tf.to_float(bboxes)
    x_min, y_min, x_max, y_max = tf.unstack(bboxes_float, axis=1)

    x_min = x_min / old_width
    y_min = y_min / old_height
    x_max = x_max / old_width

After Change


    // x_min, y_min, x_max, y_max = np.split(bboxes, 4, axis=1)
    // import ipdb; ipdb.set_trace()
    x_min = bboxes[:, 0] / old_width
    y_min = bboxes[:, 1] / old_height
    x_max = bboxes[:, 2] / old_width
    y_max = bboxes[:, 3] / old_height
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: tryolabs/luminoth
Commit Name: d52eb0bf3d6df25c70933321a841dac157806479
Time: 2018-03-20
Author: joaquin.alori@gmail.com
File Name: luminoth/models/ssd/ssd_utils.py
Class Name:
Method Name: adjust_bboxes


Project Name: NifTK/NiftyNet
Commit Name: 0c63b9dcd7ee3da39c74379a01d16e3a360d3506
Time: 2017-10-26
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/layer/resampler.py
Class Name: ResamplerLayer
Method Name: _resample_inv_dst_weighting


Project Name: analysiscenter/batchflow
Commit Name: 6dad66511b8432570eb53b67b8fd889913ac15e3
Time: 2017-11-01
Author: rhudor@gmail.com
File Name: examples/opensets/mnist_model2.py
Class Name: MyModel
Method Name: _build


Project Name: tensorflow/cleverhans
Commit Name: 2ef5a2c1e0ffc0fd8932debd03ab6a9e484957a2
Time: 2017-09-26
Author: fartash@google.com
File Name: cleverhans/utils_tf.py
Class Name:
Method Name: model_eval