From e1e78e60f53aeda955c0aed8d8738abfc524b439 Mon Sep 17 00:00:00 2001 From: zr_jin Date: Sat, 7 Dec 2024 18:19:29 +0800 Subject: [PATCH] Update valle.py --- egs/wenetspeech4tts/TTS/valle/valle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/egs/wenetspeech4tts/TTS/valle/valle.py b/egs/wenetspeech4tts/TTS/valle/valle.py index 4bfa2b577b..cc97f56709 100644 --- a/egs/wenetspeech4tts/TTS/valle/valle.py +++ b/egs/wenetspeech4tts/TTS/valle/valle.py @@ -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])):