Fix `base_tacotron` `aux_input` handling

pull/792/head
Eren Gölge 2021-07-12 12:31:05 +02:00
parent db32162eae
commit 7590c7db7a
1 changed files with 3 additions and 1 deletions

View File

@ -78,7 +78,9 @@ class BaseTacotron(BaseTTS):
@staticmethod
def _format_aux_input(aux_input: Dict) -> Dict:
return format_aux_input({"d_vectors": None, "speaker_ids": None}, aux_input)
if aux_input:
return format_aux_input({"d_vectors": None, "speaker_ids": None}, aux_input)
return None
#############################
# INIT FUNCTIONS