Update train.py

This commit is contained in:
jinzr 2023-11-30 23:09:11 +08:00
parent 26d387c41f
commit 8c75259723

View File

@ -684,7 +684,7 @@ def compute_validation_loss(
inner_model = model.module if isinstance(model, DDP) else model
audio_pred, _, duration = inner_model.inference(
text=tokens[0, : tokens_lens[0].item()],
sids=speakers,
sids=speakers[0],
)
audio_pred = audio_pred.data.cpu().numpy()
audio_len_pred = (