Update train_ms.py
This commit is contained in:
@@ -160,8 +160,8 @@ def run(rank, n_gpus, hps):
|
||||
optim_g, skip_optimizer=True)
|
||||
_, _, _, epoch_str = utils.load_checkpoint(utils.latest_checkpoint_path(hps.model_dir, "D_*.pth"), net_d,
|
||||
optim_d, skip_optimizer=True)
|
||||
if net_dur_disc is not None:
|
||||
_, _, _, epoch_str = utils.load_checkpoint(utils.latest_checkpoint_path(hps.model_dir, "DUR_*.pth"), net_dur_disc, optim_dur_disc, skip_optimizer=True)
|
||||
#if net_dur_disc is not None:
|
||||
# _, _, _, epoch_str = utils.load_checkpoint(utils.latest_checkpoint_path(hps.model_dir, "DUR_*.pth"), net_dur_disc, optim_dur_disc, skip_optimizer=True)
|
||||
epoch_str = max(epoch_str, 1)
|
||||
global_step = (epoch_str - 1) * len(train_loader)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user