mirror of https://github.com/coqui-ai/TTS.git
bug fix vocoder model restore
parent
b86af6538f
commit
fedb2542be
|
@ -56,8 +56,8 @@
|
|||
|
||||
"stft_loss_weight": 0.5,
|
||||
"subband_stft_loss_weight": 0.5,
|
||||
"mse_gan_loss_weight": 2.5,
|
||||
"hinge_gan_loss_weight": 2.5,
|
||||
"mse_G_loss_weight": 2.5,
|
||||
"hinge_G_loss_weight": 2.5,
|
||||
"feat_match_loss_weight": 25.0,
|
||||
|
||||
"stft_loss_params": {
|
||||
|
|
|
@ -421,7 +421,7 @@ def main(args): # pylint: disable=redefined-outer-name
|
|||
optimizer_gen.load_state_dict(checkpoint['optimizer'])
|
||||
model_disc.load_state_dict(checkpoint['model_disc'])
|
||||
optimizer_disc.load_state_dict(checkpoint['optimizer_disc'])
|
||||
except KeyError:
|
||||
except RuntimeError:
|
||||
print(" > Partial model initialization.")
|
||||
model_dict = model_gen.state_dict()
|
||||
model_dict = set_init_dict(model_dict, checkpoint['model'], c)
|
||||
|
|
Loading…
Reference in New Issue