Skip to content

Commit

Permalink
fix reset
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Feb 10, 2021
1 parent 708ac98 commit cbce951
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions big_sleep/big_sleep.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,7 @@ def set_text(self, text):

def reset(self):
self.model.reset()
self.model = self.model.cuda()
self.optimizer = Adam(self.model.model.latents.parameters(), self.lr)

def train_step(self, epoch, i, pbar=None):
Expand Down
2 changes: 1 addition & 1 deletion big_sleep/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.4.10'
__version__ = '0.4.11'

0 comments on commit cbce951

Please sign in to comment.