mirror of https://github.com/coqui-ai/TTS.git
Fix #846
This commit is contained in:
parent
e15bc157d8
commit
0565457faa
|
@ -456,7 +456,7 @@ class Vits(BaseTTS):
|
|||
|
||||
x, m_p, logs_p, x_mask = self.text_encoder(x, x_lengths)
|
||||
|
||||
if self.num_speakers > 0 and sid:
|
||||
if self.num_speakers > 0 and sid is not None:
|
||||
g = self.emb_g(sid).unsqueeze(-1)
|
||||
|
||||
if self.args.use_sdp:
|
||||
|
|
Loading…
Reference in New Issue