提交 fee238ff 编写于 作者: T Tingquan Gao

Revert "debug"

This reverts commit 106ff270.
上级 50284e7b
......@@ -258,7 +258,7 @@ class ClassTrainer(object):
return None
def _build_ema_model(self):
if "EMA" in self.config:
if "EMA" in self.config and self.mode == "train":
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.
先完成此消息的编辑!
想要评论请 注册