fix issue with ema class

This commit is contained in:
Phil Wang
2022-04-27 16:40:02 -07:00
parent b093f92182
commit 6edb1c5dd0
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ class EMA(nn.Module):
self.update_moving_average(self.ema_model, self.online_model) self.update_moving_average(self.ema_model, self.online_model)
def update_moving_average(ma_model, current_model): def update_moving_average(self, ma_model, current_model):
def calculate_ema(beta, old, new): def calculate_ema(beta, old, new):
if not exists(old): if not exists(old):
return new return new

View File

@@ -10,7 +10,7 @@ setup(
'dream = dalle2_pytorch.cli:dream' 'dream = dalle2_pytorch.cli:dream'
], ],
}, },
version = '0.0.55', version = '0.0.56',
license='MIT', license='MIT',
description = 'DALL-E 2', description = 'DALL-E 2',
author = 'Phil Wang', author = 'Phil Wang',