mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-09-04 06:34:20 +00:00
Update train.py
This commit is contained in:
parent
26d387c41f
commit
8c75259723
@ -684,7 +684,7 @@ def compute_validation_loss(
|
|||||||
inner_model = model.module if isinstance(model, DDP) else model
|
inner_model = model.module if isinstance(model, DDP) else model
|
||||||
audio_pred, _, duration = inner_model.inference(
|
audio_pred, _, duration = inner_model.inference(
|
||||||
text=tokens[0, : tokens_lens[0].item()],
|
text=tokens[0, : tokens_lens[0].item()],
|
||||||
sids=speakers,
|
sids=speakers[0],
|
||||||
)
|
)
|
||||||
audio_pred = audio_pred.data.cpu().numpy()
|
audio_pred = audio_pred.data.cpu().numpy()
|
||||||
audio_len_pred = (
|
audio_len_pred = (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user