From 9e818486a79fb59c3ef8d07c89b27a5549ed023d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stardust=C2=B7=E5=87=8F?= Date: Sat, 30 Sep 2023 09:58:23 +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 55626906c..7ef204b7c 100644 --- a/data_utils.py +++ b/data_utils.py @@ -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) + bert = get_bert(text, word2ph, language_str,device=None) torch.save(bert, bert_path) if language_str == "ZH":