From 6bbb99e6a55a5f0d8ec15af76cd2d49152c0c94b Mon Sep 17 00:00:00 2001 From: wangxinxin08 <69842442+wangxinxin08@users.noreply.github.com> Date: Fri, 5 Feb 2021 14:05:50 +0800 Subject: [PATCH] fix hard code bias in eval (#2187) --- dygraph/ppdet/engine/trainer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dygraph/ppdet/engine/trainer.py b/dygraph/ppdet/engine/trainer.py index 771866f65..4e58d8894 100644 --- a/dygraph/ppdet/engine/trainer.py +++ b/dygraph/ppdet/engine/trainer.py @@ -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) -- GitLab