Skip to content

Commit

Permalink
[minor] batch["speaker_ids"] getting set two times (#2470)
Browse files Browse the repository at this point in the history
* [minor] batch["speaker_ids"] getting set two times

just to make it consistent with language_ids

* Update vits.py

style.
  • Loading branch information
p0p4k authored Apr 3, 2023
1 parent c2d15cd commit 91cf1b2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion TTS/tts/models/vits.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,7 +1472,6 @@ def format_batch(self, batch: Dict) -> Dict:

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:
Expand Down

0 comments on commit 91cf1b2

Please sign in to comment.