From b9992a0e4ac8101cd1e594abf48617c11c226bdf Mon Sep 17 00:00:00 2001 From: manmay nakhashi Date: Tue, 12 Jul 2022 19:00:48 +0530 Subject: [PATCH 1/2] fix get_random_embeddings --> get_random_embedding function typo leads to training crash, no such function --- TTS/tts/models/vits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/models/vits.py b/TTS/tts/models/vits.py index 9263c0b11a..2918d21762 100644 --- a/TTS/tts/models/vits.py +++ b/TTS/tts/models/vits.py @@ -1350,7 +1350,7 @@ def get_aux_input_from_test_sentences(self, sentence_info): if hasattr(self, "speaker_manager"): if config.use_d_vector_file: if speaker_name is None: - d_vector = self.speaker_manager.get_random_embeddings() + d_vector = self.speaker_manager.get_random_embedding() else: d_vector = self.speaker_manager.get_mean_embedding(speaker_name, num_samples=None, randomize=False) elif config.use_speaker_embedding: From 802022ce59f4120808838e0257751c9cc9888ae6 Mon Sep 17 00:00:00 2001 From: manmay nakhashi Date: Thu, 4 Aug 2022 18:58:03 +0530 Subject: [PATCH 2/2] fix typo get_random_embedding --- TTS/tts/models/base_tts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/models/base_tts.py b/TTS/tts/models/base_tts.py index c86bd391b4..df64429d8f 100644 --- a/TTS/tts/models/base_tts.py +++ b/TTS/tts/models/base_tts.py @@ -137,7 +137,7 @@ def get_aux_input_from_test_setences(self, sentence_info): if hasattr(self, "speaker_manager"): if config.use_d_vector_file: if speaker_name is None: - d_vector = self.speaker_manager.get_random_embeddings() + d_vector = self.speaker_manager.get_random_embedding() else: d_vector = self.speaker_manager.get_d_vector_by_name(speaker_name) elif config.use_speaker_embedding: