未验证 提交 9a4fae6d 编写于 作者: W wangxinxin08 提交者: GitHub

fix hard code bias in eval (#2186)

上级 817ff45a
......@@ -115,7 +115,7 @@ class Trainer(object):
return
if self.cfg.metric == 'COCO':
# TODO: bias should be unified
bias = 1 if 'bias' in self.cfg else 0
bias = self.cfg['bias'] if 'bias' in self.cfg else 0
self._metrics = [
COCOMetric(
anno_file=self.dataset.get_anno(), bias=bias)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册