Skip to content

Commit

Permalink
fix mrcnn_bbox_loss
Browse files Browse the repository at this point in the history
  • Loading branch information
keineahnung2345 authored Jan 11, 2019
1 parent a0a2aa0 commit 760ad47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mrcnn/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1137,7 +1137,7 @@ def mrcnn_bbox_loss_graph(target_bbox, target_class_ids, pred_bbox):
loss = K.switch(tf.size(target_bbox) > 0,
smooth_l1_loss(y_true=target_bbox, y_pred=pred_bbox),
tf.constant(0.0))
loss = K.mean(loss)
loss = K.mean(K.sum(loss, axis=1))
return loss


Expand Down

0 comments on commit 760ad47

Please sign in to comment.