Skip to content

Commit

Permalink
Update valle.py
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr committed Dec 7, 2024
1 parent 6e6b022 commit e1e78e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions egs/wenetspeech4tts/TTS/valle/valle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,8 +1686,8 @@ def visualize(
decoder_outputs = decoder_outputs.to("cpu").type(torch.float32).detach().numpy()

vmin, vmax = 0, 1024 # Encodec
if decoder_outputs.dtype == np.float32:
vmin, vmax = -6, 0 # Fbank
# if decoder_outputs.dtype == np.float32:
# vmin, vmax = -6, 0 # Fbank

num_figures = 3
for b, (utt_id, text) in enumerate(zip(utt_ids[:limit], texts[:limit])):
Expand Down

0 comments on commit e1e78e6

Please sign in to comment.