Update bert_gen.py

This commit is contained in:
Stardust·减
2023-09-02 00:40:04 +08:00
committed by GitHub
parent d2ab3f1f5d
commit 60ee09918d

View File

@@ -39,7 +39,7 @@ def process_line(line):
assert bert.shape[-1] == len(phone) assert bert.shape[-1] == len(phone)
torch.save(bert, bert_path) torch.save(bert, bert_path)
with open(hps.data.training_files) as f: with open(hps.data.training_files, encoding='utf-8') as f:
lines = f.readlines() lines = f.readlines()
with Pool(processes=12) as pool: #A100 suitable config,if coom,please decrease the processess number. with Pool(processes=12) as pool: #A100 suitable config,if coom,please decrease the processess number.