Skip to content

Commit

Permalink
returns y_mask in VITS inference (#1540)
Browse files Browse the repository at this point in the history
* returns y_mask

* make style
  • Loading branch information
WeberJulian authored Apr 27, 2022
1 parent a41e860 commit 379ccd7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion TTS/tts/models/vits.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,7 +1050,15 @@ def inference(

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()
Expand Down

0 comments on commit 379ccd7

Please sign in to comment.