Skip to content

Commit

Permalink
Update bert_gen.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus authored Jan 4, 2024
1 parent 62d3a2e commit baa61d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bert_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def process_line(x):

try:
bert = torch.load(bert_path)
assert bert.shape[-1] == len(phone)
assert bert.shape[0] == 2048
except Exception:
bert = get_bert(text, word2ph, language_str, device)
assert bert.shape[-1] == len(phone)
Expand Down

0 comments on commit baa61d2

Please sign in to comment.