Skip to content

Commit 624608f

Browse files
authored
Merge pull request #614 from EKELE-NNOROM/patch-1
Update bbox_transform.py
2 parents 358ceca + 2eceb34 commit 624608f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/model/rpn/bbox_transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ def bbox_overlaps_batch(anchors, gt_boxes):
245245
torch.max(boxes[:,:,:,1], query_boxes[:,:,:,1]) + 1)
246246
ih[ih < 0] = 0
247247
ua = anchors_area + gt_boxes_area - (iw * ih)
248-
248+
249+
# Intersection (iw * ih) divided by Union (ua)
249250
overlaps = iw * ih / ua
250251

251252
# mask the overlap here.

0 commit comments

Comments
 (0)