Skip to content

Commit 2abdb8d

Browse files
committed
update cal voc map
1 parent 9b5d698 commit 2abdb8d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dataset_tools/cal_voc_map.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ def cal_iou(bbgt,bb,gt_label,pd_label,class_name):
2525
ih = bi[3] - bi[1] + 1
2626
if iw > 0 and ih > 0:
2727
# compute overlap (IoU) = area of intersection / area of union
28-
ua = (bb[2] - bb[0] + 1) * (bb[3] - bb[1] + 1) + (bbgt[2] - bbgt[0]
29-
+ 1) * (bbgt[3] - bbgt[1] + 1) - iw * ih
28+
ua = (bb[2] - bb[0] + 1) * (bb[3] - bb[1] + 1) + (bbgt[2] - bbgt[0] + 1) * (bbgt[3] - bbgt[1] + 1) - iw * ih
3029
ov = iw * ih / ua
3130
if ov > ovmax:
3231
if pd_label == gt_label == class_name:

0 commit comments

Comments
 (0)