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 d983ac7 commit a862bd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,9 @@ def get_text(self, text, word2ph, phone, tone, language_str, wav_path):
bert_path = wav_path.replace(".wav", ".bert.pt")
try:
bert = torch.load(bert_path)
except:
bert = get_bert(text, word2ph, language_str, "cuda", tokenizer)
torch.save(bert, bert_path)
#except:
# bert = get_bert(text, word2ph, language_str, "cuda", tokenizer)
# torch.save(bert, bert_path)

if language_str == "ZH":
bert = bert
Expand Down

0 comments on commit a862bd4

Please sign in to comment.