From 9a4fae6d49c8e49e7c3168d69d94d77dfbb41785 Mon Sep 17 00:00:00 2001 From: wangxinxin08 <69842442+wangxinxin08@users.noreply.github.com> Date: Fri, 5 Feb 2021 14:06:00 +0800 Subject: [PATCH] fix hard code bias in eval (#2186) --- 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