From 4e4a4d20f10f491b55826a221f18b3e126a6ea15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sat, 30 Sep 2023 20:17:29 +0800 Subject: [PATCH] Update data_utils.py --- data_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_utils.py b/data_utils.py index fb685aa34..82ad068fe 100644 --- a/data_utils.py +++ b/data_utils.py @@ -156,7 +156,7 @@ def get_text(self, text, word2ph, phone, tone, language_str, wav_path): 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}" + #assert bert.shape[-1] == len(phone), f"length of phonemes does not match input length of bert:{phone}, {bert.shape}" except Exception as e: print("Bert load failed!", e) if language_str == "ZH":