returns y_mask in VITS inference (#1540)

* returns y_mask

* make style
This commit is contained in:
WeberJulian 2022-04-27 10:42:26 +02:00 committed by GitHub
parent a41e860a66
commit 379ccd7ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -1050,7 +1050,15 @@ class Vits(BaseTTS):
o = self.waveform_decoder((z * y_mask)[:, :, : self.max_inference_len], g=g)
outputs = {"model_outputs": o, "alignments": attn.squeeze(1), "z": z, "z_p": z_p, "m_p": m_p, "logs_p": logs_p}
outputs = {
"model_outputs": o,
"alignments": attn.squeeze(1),
"z": z,
"z_p": z_p,
"m_p": m_p,
"logs_p": logs_p,
"y_mask": y_mask,
}
return outputs
@torch.no_grad()