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,
            x,
            target_metadata
        ]

        return super(JHung2019, self).predict(x, batch_size, verbose, steps)

After Change



        predicted_bounding_boxes, predicted_categories = prediction

        predicted_bounding_boxes = numpy.squeeze(predicted_bounding_boxes)

        predicted_categories = numpy.squeeze(predicted_categories)

        predicted_categories = numpy.argmax(predicted_categories, axis=-1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

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: scikit-image/scikit-image
Commit Name: 5eef44e87fcb84e6848d2184241ba443dece3e17
Time: 2017-12-05
Author: contact@kne42.me
File Name: skimage/measure/_moments.py
Class Name:
Method Name: moments_coords_central


Project Name: dpressel/mead-baseline
Commit Name: 4b4946f40ef0f8c533f5473ec3756e639e57e5c5
Time: 2018-09-28
Author: dpressel@gmail.com
File Name: python/baseline/dy/dynety.py
Class Name:
Method Name: show_examples_dynet


Project Name: mittagessen/kraken
Commit Name: 56156540d33f329ebf271ac9313ca723e649c0a2
Time: 2019-06-27
Author: mittagessen@l.unchti.me
File Name: kraken/blla.py
Class Name:
Method Name: segment