EMA class updates
This commit is contained in:
parent
851c9b9883
commit
adba66c3a6
|
@ -151,4 +151,4 @@ class ModelEMA:
|
||||||
# Assign attributes (which may change during training)
|
# Assign attributes (which may change during training)
|
||||||
for k in model.__dict__.keys():
|
for k in model.__dict__.keys():
|
||||||
if not k.startswith('_'):
|
if not k.startswith('_'):
|
||||||
self.ema.__setattr__(k, model.getattr(k))
|
setattr(model, k, getattr(model, k))
|
||||||
|
|
Loading…
Reference in New Issue