mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-13 20:12:24 +00:00
Update valle.py
This commit is contained in:
parent
2504036f5b
commit
94126e7f38
@ -1669,8 +1669,8 @@ class VALLE(nn.Module):
|
|||||||
output_dir: str,
|
output_dir: str,
|
||||||
limit: int = 4,
|
limit: int = 4,
|
||||||
) -> None:
|
) -> None:
|
||||||
audio_features = batch["audio_features"].to("cpu").detach().numpy()
|
audio_features = batch["features"].to("cpu").detach().numpy()
|
||||||
audio_features_lens = batch["audio_features_lens"].to("cpu").detach().numpy()
|
audio_features_lens = batch["features_lens"].to("cpu").detach().numpy()
|
||||||
|
|
||||||
tokens = batch["tokens"]
|
tokens = batch["tokens"]
|
||||||
text_tokens, text_tokens_lens = tokenizer(tokens)
|
text_tokens, text_tokens_lens = tokenizer(tokens)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user