update fixed stopnet_pos_weight parameter

config parameter c.stopnet_pos_weight has currently no effect as it is not used.
This commit is contained in:
Alexander Korolev 2021-01-27 16:33:25 +01:00 committed by Eren Gölge
parent 534e3c67c6
commit b4bc5f6eb1
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ def main(args): # pylint: disable=redefined-outer-name
optimizer_st = None optimizer_st = None
# setup criterion # setup criterion
criterion = TacotronLoss(c, stopnet_pos_weight=10.0, ga_sigma=0.4) criterion = TacotronLoss(c, stopnet_pos_weight=c.stopnet_pos_weight, ga_sigma=0.4)
if args.restore_path: if args.restore_path:
checkpoint = torch.load(args.restore_path, map_location='cpu') checkpoint = torch.load(args.restore_path, map_location='cpu')