未验证 提交 42bd90d7 编写于 作者: G Guanghua Yu 提交者: GitHub

fix catid2name in coco eval (#681)

上级 7bb4fd1b
......@@ -609,6 +609,7 @@ def coco17_category_info(with_background=True):
if not with_background:
clsid2catid = {k - 1: v for k, v in clsid2catid.items()}
catid2name.pop(0)
else:
clsid2catid.update({0: 0})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册