Skip to content

Commit

Permalink
Small correction. Considering the .abs() it shouldn't make a notice…
Browse files Browse the repository at this point in the history
…able difference. But just so that wires aren't crossed.
  • Loading branch information
authman committed Jul 27, 2020
1 parent ff7d66e commit 84d3c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion effdet/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def _box_loss(box_outputs, box_targets, num_positives, delta: float = 0.1):
# P3-P7 pyramid is about [0.1, 0.1, 0.2, 0.2].
normalizer = num_positives * 4.0
mask = box_targets != 0.0
box_loss = huber_loss(box_targets, box_outputs, weights=mask, delta=delta, size_average=False)
box_loss = huber_loss(box_outputs, box_targets, weights=mask, delta=delta, size_average=False)
box_loss /= normalizer
return box_loss

Expand Down

0 comments on commit 84d3c41

Please sign in to comment.