Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
Revert "swich to new pytorch api (facebookresearch#359)" (facebookres…
Browse files Browse the repository at this point in the history
…earch#364)

This reverts commit 6cbb3d2.
  • Loading branch information
fmassa authored Jan 21, 2019
1 parent 7510037 commit eb3b079
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,
reduction='sum',
size_average=False,
) / (sampled_inds.numel())

objectness_loss = F.binary_cross_entropy_with_logits(
Expand Down

0 comments on commit eb3b079

Please sign in to comment.