mirror of
https://github.com/coqui-ai/TTS.git
synced 2026-07-11 04:51:29 +02:00
fix test sentence synthesis
This commit is contained in:
@@ -175,6 +175,7 @@ def embedding_to_torch(d_vector, cuda=False):
|
||||
if d_vector is not None:
|
||||
d_vector = np.asarray(d_vector)
|
||||
d_vector = torch.from_numpy(d_vector).type(torch.FloatTensor)
|
||||
d_vector = d_vector.squeeze().unsqueeze(0)
|
||||
if cuda:
|
||||
return d_vector.cuda()
|
||||
return d_vector
|
||||
|
||||
Reference in New Issue
Block a user