mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
a
This commit is contained in:
@@ -361,7 +361,7 @@ def main(args):
|
||||
if args.restore_path:
|
||||
checkpoint = torch.load(args.restore_path)
|
||||
model.load_state_dict(checkpoint['model'])
|
||||
optimizer.load_state_dict(checkpoint['optimizer'])
|
||||
optimizer.load_state_dict(checkpoint['optimizer'].cuda())
|
||||
print(" > Model restored from step %d" % checkpoint['step'])
|
||||
start_epoch = checkpoint['step'] // len(train_loader)
|
||||
best_loss = checkpoint['linear_loss']
|
||||
|
||||
Reference in New Issue
Block a user