Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr committed Dec 6, 2024
1 parent 94126e7 commit a8efe19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion egs/wenetspeech4tts/TTS/valle/valle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1676,7 +1676,8 @@ def visualize(
text_tokens, text_tokens_lens = tokenizer(tokens)
assert text_tokens.ndim == 2

utt_ids, texts = batch["utt_id"], batch["text"]
texts = batch["text"]
utt_ids = [cut.id for cut in batch["cut"]]

encoder_outputs = predicts[0].to("cpu").type(torch.float32).detach().numpy()
decoder_outputs = predicts[1]
Expand Down

0 comments on commit a8efe19

Please sign in to comment.