Skip to content

Commit

Permalink
removed unnecessary type check (#1827)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Dec 8, 2024
1 parent d33f678 commit 32b7a44
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions egs/wenetspeech4tts/TTS/valle/valle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,8 +1686,6 @@ 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

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

0 comments on commit 32b7a44

Please sign in to comment.