eb4732369125efb8c9c87ad79544e99c1aa3b67e,keras_rcnn/applications/_jhung2019.py,JHung2019,predict,#JHung2019#Any#Any#Any#Any#,294

Before Change



        target_categories = numpy.zeros((x.shape[0], 1, self.n_categories))

        target_metadata = numpy.array([[x.shape[1], x.shape[2], 1.0]])

        x = [
            target_bounding_boxes,
            target_categories,

After Change



        predicted_categories = numpy.argmax(predicted_categories, axis=-1)

        indices = numpy.where(predicted_categories > 0)

        predicted_bounding_boxes = predicted_bounding_boxes[indices]

        predicted_categories = predicted_categories[indices]

        return predicted_bounding_boxes, predicted_categories
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: broadinstitute/keras-rcnn
Commit Name: eb4732369125efb8c9c87ad79544e99c1aa3b67e
Time: 2019-04-30
Author: allen.goodman@icloud.com
File Name: keras_rcnn/applications/_jhung2019.py
Class Name: JHung2019
Method Name: predict


Project Name: dmlc/gluon-cv
Commit Name: 5bc2c075733e672a9a7c5e14bc474788f88e90de
Time: 2019-12-06
Author: jerryzh.cn@gmail.com
File Name: gluoncv/utils/viz/mask.py
Class Name:
Method Name: expand_mask


Project Name: rail-berkeley/softlearning
Commit Name: 0cef3e36b3283534bc0395d167e4e2a63c5ff9e2
Time: 2018-07-25
Author: kristian.hartikainen@gmail.com
File Name: softlearning/environments/image_pusher.py
Class Name: ImageForkReacherEnv
Method Name: reset