Skip to content

Commit

Permalink
Update bert_gen.py (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
YYuX-1145 authored Jan 4, 2024
1 parent 43af086 commit 396f8df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bert_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import commons
import utils
from tqdm import tqdm
from text import check_bert_models, cleaned_text_to_sequence, get_bert
from text import cleaned_text_to_sequence, get_bert
import argparse
import torch.multiprocessing as mp
from config import config
Expand Down Expand Up @@ -59,7 +59,6 @@ def process_line(x):
args, _ = parser.parse_known_args()
config_path = args.config
hps = utils.get_hparams_from_file(config_path)
check_bert_models()
lines = []
with open(hps.data.training_files, encoding="utf-8") as f:
lines.extend(f.readlines())
Expand Down

0 comments on commit 396f8df

Please sign in to comment.