bug fix vocoder model restore

pull/1/head
erogol 2020-06-06 13:00:46 +02:00
parent b86af6538f
commit fedb2542be
2 changed files with 3 additions and 3 deletions

View File

@ -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": {

View File

@ -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)