未验证 提交 61a8b0e7 编写于 作者: K Kaipeng Deng 提交者: GitHub

fix voc eval (#249)

上级 029a0ec0
...@@ -145,7 +145,9 @@ class DetectionMAP(object): ...@@ -145,7 +145,9 @@ class DetectionMAP(object):
valid_cnt = 0 valid_cnt = 0
for score_pos, count in zip(self.class_score_poss, for score_pos, count in zip(self.class_score_poss,
self.class_gt_counts): self.class_gt_counts):
if count == 0 or len(score_pos) == 0: if count == 0: continue
if len(score_pos) == 0:
valid_cnt += 1
continue continue
accum_tp_list, accum_fp_list = \ accum_tp_list, accum_fp_list = \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册