mirror of https://github.com/coqui-ai/TTS.git
Make style
This commit is contained in:
parent
ea9dbd40fd
commit
0a54d30023
|
@ -2249,11 +2249,7 @@ class Vits(BaseTTS):
|
||||||
emotion_ids = [self.emotion_manager.ids[en] for en in emotion_names]
|
emotion_ids = [self.emotion_manager.ids[en] for en in emotion_names]
|
||||||
emotion_ids = torch.LongTensor(emotion_ids)
|
emotion_ids = torch.LongTensor(emotion_ids)
|
||||||
|
|
||||||
if (
|
if self.emotion_manager is not None and self.emotion_manager.ids and self.args.use_emotion_embedding:
|
||||||
self.emotion_manager is not None
|
|
||||||
and self.emotion_manager.ids
|
|
||||||
and self.args.use_emotion_embedding
|
|
||||||
):
|
|
||||||
emotion_ids = torch.LongTensor([self.emotion_manager.ids[en] for en in batch["emotion_names"]])
|
emotion_ids = torch.LongTensor([self.emotion_manager.ids[en] for en in batch["emotion_names"]])
|
||||||
|
|
||||||
batch["language_ids"] = language_ids
|
batch["language_ids"] = language_ids
|
||||||
|
|
Loading…
Reference in New Issue