Skip to content

Commit

Permalink
fix bias problem while training (PaddlePaddle#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinxin08 authored Feb 2, 2021
1 parent b83aab2 commit 524f56f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dygraph/ppdet/engine/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,10 @@ def _init_metrics(self):
return
if self.cfg.metric == 'COCO':
# TODO: bias should be unified
bias = 1 if 'bias' in self.cfg else 0
self._metrics = [
COCOMetric(
anno_file=self.dataset.get_anno(), bias=self.cfg.bias)
anno_file=self.dataset.get_anno(), bias=bias)
]
elif self.cfg.metric == 'VOC':
self._metrics = [
Expand Down

0 comments on commit 524f56f

Please sign in to comment.