From 9c59816a15c232e8efded5c81edc0d6d453ccb1e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 8 Oct 2023 14:22:45 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- data_utils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data_utils.py b/data_utils.py index f991b8345..e59f858e6 100644 --- a/data_utils.py +++ b/data_utils.py @@ -91,7 +91,7 @@ def get_audio_text_speaker_pair(self, audiopath_sid_text): spec, wav = self.get_audio(audiopath) sid = torch.LongTensor([int(self.spk_map[sid])]) - emo = torch.FloatTensor(np.load(audiopath+".emo.npy")) + emo = torch.FloatTensor(np.load(audiopath + ".emo.npy")) return (phones, spec, wav, sid, tone, language, bert, ja_bert, emo) def get_audio(self, filename): @@ -235,7 +235,7 @@ def __call__(self, batch): bert_padded.zero_() ja_bert_padded.zero_() emo.zero_() - + for i in range(len(ids_sorted_decreasing)): row = batch[ids_sorted_decreasing[i]] @@ -264,7 +264,7 @@ def __call__(self, batch): ja_bert = row[7] ja_bert_padded[i, :, : ja_bert.size(1)] = ja_bert - + emo[i, :] = row[8] return (