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

fix hard code bias in eval (#2186)

上级 817ff45a
...@@ -115,7 +115,7 @@ class Trainer(object): ...@@ -115,7 +115,7 @@ class Trainer(object):
return return
if self.cfg.metric == 'COCO': if self.cfg.metric == 'COCO':
# TODO: bias should be unified # 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 = [ self._metrics = [
COCOMetric( COCOMetric(
anno_file=self.dataset.get_anno(), bias=bias) 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.
先完成此消息的编辑!
想要评论请 注册