Skip to content

Commit

Permalink
Update bbox_transform.py
Browse files Browse the repository at this point in the history
  • Loading branch information
EKELE-NNOROM committed Jul 18, 2019
1 parent 358ceca commit 2eceb34
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 2eceb34

Please sign in to comment.