Skip to content

Commit

Permalink
Fixed bug where current_step in training loop not updated
Browse files Browse the repository at this point in the history
  • Loading branch information
TheButlah committed Aug 12, 2019
1 parent 1b4aaa7 commit 4e940e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions train_tacotron.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ def main():
optimizer = optim.Adam(model.parameters())
restore_checkpoint(paths, model, optimizer, create_if_missing=True)

current_step = model.get_step()

if not force_gta:
for i, session in enumerate(hp.tts_schedule):
current_step = model.get_step()

r, lr, max_step, batch_size = session

training_steps = max_step - current_step
Expand Down

0 comments on commit 4e940e1

Please sign in to comment.