Skip to content

Commit

Permalink
swich to new pytorch api (facebookresearch#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
103yiran authored and fmassa committed Jan 21, 2019
1 parent 3b27142 commit 6cbb3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maskrcnn_benchmark/modeling/rpn/loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __call__(self, anchors, objectness, box_regression, targets):
box_regression[sampled_pos_inds],
regression_targets[sampled_pos_inds],
beta=1.0 / 9,
size_average=False,
reduction='sum',
) / (sampled_inds.numel())

objectness_loss = F.binary_cross_entropy_with_logits(
Expand Down

0 comments on commit 6cbb3d2

Please sign in to comment.