mirror of https://github.com/coqui-ai/TTS.git
This commit is contained in:
parent
1b59d8110c
commit
784996dc4e
2
train.py
2
train.py
|
@ -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']
|
||||
|
|
Loading…
Reference in New Issue