Unverified 提交 ccfa9373 authored 作者: NanoCode012's avatar NanoCode012 提交者: GitHub

Update to remove "module" attribute check

上级 f83521ab
......@@ -201,5 +201,5 @@ class ModelEMA:
def update_attr(self, model):
# Update EMA attributes
for k, v in model.__dict__.items():
if not k.startswith('_') and k not in ["module", "process_group", "reducer"]:
if not k.startswith('_') and k not in ["process_group", "reducer"]:
setattr(self.ema, k, v)
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论