eb737460e317877af263183245ebac792c02aa20,keras_retinanet/layers/_misc.py,NonMaximumSuppression,call,#NonMaximumSuppression#Any#,121

Before Change


        classification = keras.backend.gather(classification, indices)

        // TODO: find a way to avoid reshaping the detections.
        detections = keras.backend.reshape(detections, (-1, keras.backend.int_shape(detections)[2]))
        detections = keras.backend.gather(detections, indices)

        indices = keras_retinanet.backend.non_max_suppression(boxes, scores, max_output_size=self.max_boxes, iou_threshold=self.nms_threshold)

After Change


        boxes, classification, detections = inputs

        // TODO: support batch size > 1.
        boxes          = boxes[0]
        classification = classification[0]
        detections     = detections[0]

        scores  = keras.backend.max(classification, axis=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: fizyr/keras-retinanet
Commit Name: eb737460e317877af263183245ebac792c02aa20
Time: 2017-10-23
Author: hansg91@gmail.com
File Name: keras_retinanet/layers/_misc.py
Class Name: NonMaximumSuppression
Method Name: call


Project Name: fizyr/keras-retinanet
Commit Name: 4a26a4fd05475ab1d44aee2441584ee822d870d3
Time: 2017-08-16
Author: j.c.gaiser@delftrobotics.com
File Name: keras_retinanet/layers/_anchor_target.py
Class Name: AnchorTarget
Method Name: call


Project Name: broadinstitute/keras-rcnn
Commit Name: 8089eb1e68c7616bbc58bc2c0083040e6a58e182
Time: 2017-08-28
Author: jyhung@broadinstitute.org
File Name: keras_rcnn/layers/pooling.py
Class Name: RegionOfInterest
Method Name: call