Skip to content

Commit

Permalink
fix bug in bert_gen.py (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangyuxiaoxiao authored Oct 9, 2023
1 parent b57dfd7 commit dc48bb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bert_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def process_line(line):
if torch.cuda.is_available():
gpu_id = rank % torch.cuda.device_count()
device = torch.device(f"cuda:{gpu_id}")
else:
device = torch.device("cpu")
wav_path, _, language_str, text, phones, tone, word2ph = line.strip().split("|")
phone = phones.split(" ")
tone = [int(i) for i in tone.split(" ")]
Expand Down

0 comments on commit dc48bb4

Please sign in to comment.