Skip to content

Commit

Permalink
fix issue with EMA class
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Apr 27, 2022
1 parent 0032a49 commit 177b27e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nuwa_pytorch/train_vqgan_vae.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def update(self):

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):
if not exists(old):
return new
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name = 'nuwa-pytorch',
packages = find_packages(exclude=[]),
include_package_data = True,
version = '0.7.3',
version = '0.7.4',
license='MIT',
description = 'NÜWA - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit 177b27e

Please sign in to comment.