0f0fa7e5aa9ba084cefb14c4d2bbe12be0bc99c3,tests/layers/object_detection/test_anchor_target.py,,test_overlapping,#,133

Before Change



def test_overlapping():
    stride = 16
    features = (14, 14)
    img_info = keras.backend.variable([[224, 224, 3]])
    gt_boxes = numpy.zeros((91, 4))
    gt_boxes = keras.backend.variable(gt_boxes)
    img_info = img_info[0]

After Change


    inds_inside, all_inside_anchors = anchor_target.inside_image(
        all_anchors, img_info[0], allowed_border=1)

    all_inside_anchors = keras_rcnn.backend.clip(all_inside_anchors, img_info[0][:2])

    a, max_overlaps, gt_argmax_overlaps_inds = anchor_target.overlapping(
        all_inside_anchors, gt_boxes, inds_inside)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: broadinstitute/keras-rcnn
Commit Name: 0f0fa7e5aa9ba084cefb14c4d2bbe12be0bc99c3
Time: 2018-02-27
Author: jyhung@broadinstitute.org
File Name: tests/layers/object_detection/test_anchor_target.py
Class Name:
Method Name: test_overlapping


Project Name: broadinstitute/keras-rcnn
Commit Name: 0f0fa7e5aa9ba084cefb14c4d2bbe12be0bc99c3
Time: 2018-02-27
Author: jyhung@broadinstitute.org
File Name: tests/layers/object_detection/test_anchor_target.py
Class Name:
Method Name: test_inside_image


Project Name: broadinstitute/keras-rcnn
Commit Name: 0f0fa7e5aa9ba084cefb14c4d2bbe12be0bc99c3
Time: 2018-02-27
Author: jyhung@broadinstitute.org
File Name: tests/layers/object_detection/test_anchor_target.py
Class Name:
Method Name: test_label