We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b5d698 commit 2abdb8dCopy full SHA for 2abdb8d
1 file changed
dataset_tools/cal_voc_map.py
@@ -25,8 +25,7 @@ def cal_iou(bbgt,bb,gt_label,pd_label,class_name):
25
ih = bi[3] - bi[1] + 1
26
if iw > 0 and ih > 0:
27
# 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
+ ua = (bb[2] - bb[0] + 1) * (bb[3] - bb[1] + 1) + (bbgt[2] - bbgt[0] + 1) * (bbgt[3] - bbgt[1] + 1) - iw * ih
30
ov = iw * ih / ua
31
if ov > ovmax:
32
if pd_label == gt_label == class_name:
0 commit comments