mirror of
https://github.com/wassname/TTS.git
synced 2026-09-10 11:50:20 +08:00
bug fix vocoder model restore
This commit is contained in:
@@ -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": {
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user