Skip to content

Commit

Permalink
Merge pull request #782 from AznamirWoW/audio_tensorboard
Browse files Browse the repository at this point in the history
  • Loading branch information
blaisewf authored Oct 4, 2024
2 parents 393cf0d + ce5864c commit 2062949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rvc/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,8 @@ def train_and_evaluate(
"all/mel": plot_spectrogram_to_numpy(mel[0].data.cpu().numpy()),
}
audio_dict = {}
o, *_ = net_g.infer(phone, phone_lengths, pitch, pitchf, sid)
with torch.no_grad():
o, *_ = net_g.infer(phone, phone_lengths, pitch, pitchf, sid)
audio_dict.update({f"gen/audio_{global_step:07d}": o[0, :, : ]})

summarize(
Expand Down

0 comments on commit 2062949

Please sign in to comment.