Skip to content

Commit

Permalink
Update data_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus authored Sep 30, 2023
1 parent 978777b commit 4e4a4d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 4e4a4d2

Please sign in to comment.