mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Merge pull request #296 from NanoCode012/patch-1
Fix save error for multi-gpu in ema
This commit is contained in:
commit
9485f0b51f
@ -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 != 'module':
|
||||
if not k.startswith('_') and k not in ["process_group", "reducer"]:
|
||||
setattr(self.ema, k, v)
|
||||
|
Loading…
x
Reference in New Issue
Block a user