未验证 提交 f8bc417d 编写于 作者: Uli's avatar Uli 提交者: GitHub

Update coco_eval.py (#1894)

* Update coco_eval.py

all the subsequent bbox of current image  will be ignored incorrectly if the conditional in the line 314 met

* fix bug in line 314 of coco_eval.py
Co-authored-by: Nwangguanzhong <jerrywgz@126.com>
上级 d2dd8a53
...@@ -311,7 +311,9 @@ def bbox2out(results, clsid2catid, is_bbox_normalized=False): ...@@ -311,7 +311,9 @@ def bbox2out(results, clsid2catid, is_bbox_normalized=False):
for j in range(num): for j in range(num):
dt = bboxes[k] dt = bboxes[k]
clsid, score, xmin, ymin, xmax, ymax = dt.tolist() clsid, score, xmin, ymin, xmax, ymax = dt.tolist()
if clsid < 0: continue if clsid < 0:
k += 1 #to continue to handle the subsequent bbox of current image
continue
catid = (clsid2catid[int(clsid)]) catid = (clsid2catid[int(clsid)])
if is_bbox_normalized: if is_bbox_normalized:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册