Fix: initialize worker and dict for use

This commit is contained in:
litagin02
2024-03-12 15:23:18 +09:00
parent 7736532c75
commit bc0729d970
6 changed files with 43 additions and 23 deletions

View File

@@ -1,9 +1,17 @@
import argparse
from multiprocessing import cpu_count
from style_bert_vits2.nlp.japanese import pyopenjtalk_worker
from style_bert_vits2.nlp.japanese.user_dict import update_dict
from webui.train import preprocess_all
# このプロセスからはワーカーを起動して辞書を使いたいので、ここで初期化
pyopenjtalk_worker.initialize_worker()
# dict_data/ 以下の辞書データを pyopenjtalk に適用
update_dict()
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument(