fix(xtts): voice_dir should remain None if not specified (#224)

This commit is contained in:
Enno Hermann 2024-12-19 17:22:23 +01:00 committed by GitHub
parent 370fb1da81
commit f89ce41924
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class Synthesizer(nn.Module):
self.d_vector_dim = 0
self.seg = self._get_segmenter("en")
self.use_cuda = use_cuda
self.voice_dir = optional_to_str(voice_dir)
self.voice_dir = voice_dir
if self.use_cuda:
assert torch.cuda.is_available(), "CUDA is not availabe on this machine."