[minor] batch["speaker_ids"] getting set two times (#2470)

* [minor] batch["speaker_ids"] getting set two times

just to make it consistent with language_ids

* Update vits.py

style.
This commit is contained in:
p0p 2023-04-03 18:35:21 +09:00 committed by GitHub
parent c2d15cd413
commit 91cf1b2da9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -1472,7 +1472,6 @@ class Vits(BaseTTS):
if speaker_ids is not None:
speaker_ids = torch.LongTensor(speaker_ids)
batch["speaker_ids"] = speaker_ids
# get d_vectors from audio file names
if self.speaker_manager is not None and self.speaker_manager.embeddings and self.args.use_d_vector_file: