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 6, 2024
1 parent 2504036 commit 94126e7
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 @@ -1669,8 +1669,8 @@ def visualize(
output_dir: str,
limit: int = 4,
) -> None:
audio_features = batch["audio_features"].to("cpu").detach().numpy()
audio_features_lens = batch["audio_features_lens"].to("cpu").detach().numpy()
audio_features = batch["features"].to("cpu").detach().numpy()
audio_features_lens = batch["features_lens"].to("cpu").detach().numpy()

tokens = batch["tokens"]
text_tokens, text_tokens_lens = tokenizer(tokens)
Expand Down

0 comments on commit 94126e7

Please sign in to comment.