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 c87eebb commit 577a7de
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 @@ -147,7 +147,7 @@ def get_text(self, text, word2ph, phone, tone, language_str, wav_path):
try:
bert = torch.load(bert_path)
except:
bert = get_bert(text, word2ph, language_str,device=None)
bert = get_bert(text, word2ph, language_str, "cuda", tokenizer)
torch.save(bert, bert_path)

if language_str == "ZH":
Expand Down

0 comments on commit 577a7de

Please sign in to comment.