cea18fc729df204b371271e1db4be3f9f4443fce,keras_rcnn/layers/losses/_mask_rcnn.py,RCNNMaskLoss,compute_mask_loss,#,120

Before Change



        a = RCNNMaskLoss.binary_crossentropy(target=target_mask, output=output_mask)

        loss = keras.backend.sum(a * b) / keras.backend.sum(b)
        // loss = keras.backend.mean(a * b)

        // TODO: we should try:
        //   `keras.backend.mean(a * b) + keras.backend.mean(1 - b)`

After Change


        a = RCNNMaskLoss.binary_crossentropy(target=target_mask, output=output_mask)

        // loss = keras.backend.sum(a * b) / keras.backend.sum(b)
        loss = keras.backend.mean(a * b)

        // TODO: we should try:
        //   `keras.backend.mean(a * b) + keras.backend.mean(1 - b)`
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: broadinstitute/keras-rcnn
Commit Name: cea18fc729df204b371271e1db4be3f9f4443fce
Time: 2018-11-20
Author: mbroisin@wma13-b01.broadinstitute.org
File Name: keras_rcnn/layers/losses/_mask_rcnn.py
Class Name: RCNNMaskLoss
Method Name: compute_mask_loss


Project Name: broadinstitute/keras-rcnn
Commit Name: 68c719ea7df1ba346cb2ee52fc5273ec871ca2ae
Time: 2018-11-16
Author: mbroisin@wma13-b01.broadinstitute.org
File Name: keras_rcnn/layers/losses/_mask_rcnn.py
Class Name: RCNNMaskLoss
Method Name: compute_mask_loss


Project Name: broadinstitute/keras-rcnn
Commit Name: 54bb7181a53e36a27dbd78dac1c27e6ce39f5b20
Time: 2018-11-19
Author: mbroisin@wma13-b01.broadinstitute.org
File Name: keras_rcnn/layers/losses/_mask_rcnn.py
Class Name: RCNNMaskLoss
Method Name: compute_mask_loss