mirror of https://github.com/coqui-ai/TTS.git
bug fix for TTS model restore
This commit is contained in:
parent
79db7d931b
commit
b86af6538f
2
train.py
2
train.py
|
@ -542,7 +542,7 @@ def main(args): # pylint: disable=redefined-outer-name
|
|||
except:
|
||||
print(" > Partial model initialization.")
|
||||
model_dict = model.state_dict()
|
||||
model_dict = set_init_dict(model_dict, checkpoint, c)
|
||||
model_dict = set_init_dict(model_dict, checkpoint['model'], c)
|
||||
model.load_state_dict(model_dict)
|
||||
del model_dict
|
||||
for group in optimizer.param_groups:
|
||||
|
|
Loading…
Reference in New Issue