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

Before Change


    
    // 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: 3

Non-data size: 3

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: tensorflow/models
Commit Name: f7b4c6de2037ebedf6bc8ea5979e81666d54534f
Time: 2020-12-01
Author: rathodv@google.com
File Name: research/object_detection/meta_architectures/center_net_meta_arch.py
Class Name:
Method Name: convert_strided_predictions_to_normalized_boxes


Project Name: fgnt/nara_wpe
Commit Name: 5cc7ba91f38bf3e67a3dd9b21aa4f7d848a1fb34
Time: 2017-09-06
Author: heymann@nt.upb.de
File Name: nara_wpe/tf_wpe.py
Class Name:
Method Name: wpe