提交 106ff270 编写于 作者: G gaotingquan 提交者: Wei Shengyu

debug

上级 428edb6f
......@@ -258,7 +258,7 @@ class ClassTrainer(object):
return None
def _build_ema_model(self):
if "EMA" in self.config and self.mode == "train":
if "EMA" in self.config:
model_ema = ExponentialMovingAverage(
self.model, self.config['EMA'].get("decay", 0.9999))
self.best_metric["metric_ema"] = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册