From 7b15665089fab7bbb70cebea778e2c17e1628f13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sat, 30 Sep 2023 19:35:52 +0800 Subject: [PATCH] Update data_utils.py --- data_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/data_utils.py b/data_utils.py index 704d1ed72..0f3f32dc0 100644 --- a/data_utils.py +++ b/data_utils.py @@ -154,6 +154,7 @@ def get_text(self, text, word2ph, phone, tone, language_str, wav_path): bert = torch.load(bert_path) assert bert.shape[-1] == len(phone) elif language_str == "JP": + bert = torch.load(bert_path) bert = get_bert_train(text_normalize(text), bert, word2ph, tokenizer) assert bert.shape[-1] == len(phone), f"length of phonemes does not match input length of bert:{phone}, {bert.shape}" except Exception as e: