Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed May 1, 2024
1 parent 9f49074 commit b17e1ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion magvit2_pytorch/trainer.py
Expand Up @@ -180,6 +180,8 @@ def __init__(

self.apply_gradient_penalty_every = apply_gradient_penalty_every

self.has_multiscale_discrs = self.model.has_multiscale_discrs

# prepare for maybe distributed

(
Expand All @@ -200,7 +202,6 @@ def __init__(

# multiscale discr losses

self.has_multiscale_discrs = self.model.has_multiscale_discrs
self.multiscale_discr_optimizers = []

for ind, discr in enumerate(self.model.multiscale_discrs):
Expand Down
2 changes: 1 addition & 1 deletion magvit2_pytorch/version.py
@@ -1 +1 @@
__version__ = '0.4.0'
__version__ = '0.4.1'

0 comments on commit b17e1ae

Please sign in to comment.