Skip to content

Commit

Permalink
update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ftshijt committed Mar 25, 2021
1 parent a6b3445 commit 3117de8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SVS/model/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def train_one_epoch(
log_save_dir,
args,
voc_model,
gen_wave=False
gen_wave=False,
)
else:
log_figure(
Expand Down Expand Up @@ -1277,7 +1277,9 @@ def log_figure(step, output, spec, att, length, save_dir, args):
plt.savefig(os.path.join(save_dir, "{}_att.png".format(step)))


def log_mel(step, output_mel, ori_mel, att, length, save_dir, args, voc_model, gen_wave=True):
def log_mel(
step, output_mel, ori_mel, att, length, save_dir, args, voc_model, gen_wave=True
):
"""log_mel."""
# only get one sample from a batch
# save wav and plot spectrogram
Expand Down

0 comments on commit 3117de8

Please sign in to comment.