b5f576591e59ea7ca550cd51a08f96d37eb0ebf3,tests/test_losses.py,,test_smooth_l1_loss,#,7

Before Change




def test_smooth_l1_loss():
    y_true = numpy.random.random((1, 10, 4))
    y_pred = numpy.random.random((1, 10, 4))

    loss = keras_rcnn.backend.smooth_l1_loss(y_true, y_pred)

After Change



def test_smooth_l1_loss():
    y_true = numpy.zeros((1, 4, 4))
    y_pred = numpy.array([[[0, 0, 0, 0], [1, 0, 0, 1], [0, 0.1, 0.5, 0.5], [0, 0, 0, 2]]])

    loss = keras_rcnn.backend.smooth_l1_loss(y_true, y_pred)

    loss = keras.backend.eval(loss)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: broadinstitute/keras-rcnn
Commit Name: b5f576591e59ea7ca550cd51a08f96d37eb0ebf3
Time: 2017-08-18
Author: jyhung@broadinstitute.org
File Name: tests/test_losses.py
Class Name:
Method Name: test_smooth_l1_loss


Project Name: open-mmlab/mmdetection
Commit Name: 5db9b2e34a882d385440b8706e7a95319b6f99d2
Time: 2020-04-06
Author: yhcao6@gmail.com
File Name: tests/test_masks.py
Class Name:
Method Name: test_bitmap_mask_rescale


Project Name: open-mmlab/mmdetection
Commit Name: 5db9b2e34a882d385440b8706e7a95319b6f99d2
Time: 2020-04-06
Author: yhcao6@gmail.com
File Name: tests/test_masks.py
Class Name:
Method Name: test_polygon_mask_crop