Skip to content

Commit

Permalink
Merge pull request jwyang#614 from EKELE-NNOROM/patch-1
Browse files Browse the repository at this point in the history
Update bbox_transform.py
  • Loading branch information
jwyang authored Aug 24, 2019
2 parents 358ceca + 2eceb34 commit 624608f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/model/rpn/bbox_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,8 @@ def bbox_overlaps_batch(anchors, gt_boxes):
torch.max(boxes[:,:,:,1], query_boxes[:,:,:,1]) + 1)
ih[ih < 0] = 0
ua = anchors_area + gt_boxes_area - (iw * ih)


# Intersection (iw * ih) divided by Union (ua)
overlaps = iw * ih / ua

# mask the overlap here.
Expand Down

0 comments on commit 624608f

Please sign in to comment.