mirror of https://github.com/coqui-ai/TTS.git
Remove useless encoder weights reload
This commit is contained in:
parent
b692c77e6a
commit
7be9056b3d
|
@ -677,8 +677,6 @@ class Vits(BaseTTS):
|
|||
" [!] To use the speaker consistency loss (SCL) you need to specify encoder_model_path and encoder_config_path !!"
|
||||
)
|
||||
|
||||
# load encoder
|
||||
self.speaker_manager.init_encoder(self.args.encoder_model_path, self.args.encoder_config_path)
|
||||
self.speaker_manager.encoder.eval()
|
||||
print(" > External Speaker Encoder Loaded !!")
|
||||
|
||||
|
@ -699,8 +697,7 @@ class Vits(BaseTTS):
|
|||
raise RuntimeError(
|
||||
" [!] To use the emotion consistency loss (ECL) you need to specify encoder_model_path and encoder_config_path !!"
|
||||
)
|
||||
# load encoder
|
||||
self.emotion_manager.init_encoder(self.args.encoder_model_path, self.args.encoder_config_path)
|
||||
|
||||
self.emotion_manager.encoder.eval()
|
||||
print(" > External Emotion Encoder Loaded !!")
|
||||
|
||||
|
|
|
@ -386,6 +386,8 @@ class TestVits(unittest.TestCase):
|
|||
batch["d_vectors"] = None
|
||||
batch["speaker_ids"] = None
|
||||
batch["language_ids"] = None
|
||||
batch["emotion_embeddings"] = None
|
||||
batch["emotion_ids"] = None
|
||||
return batch
|
||||
|
||||
def test_train_step(self):
|
||||
|
|
Loading…
Reference in New Issue