Fix: import error

pyopenjtalk_worker.initialize() has the side effect of starting another process and should not be executed automatically on import.
This commit is contained in:
tsukumi
2024-03-08 07:31:33 +00:00
parent 75467936d9
commit 5de4884075
5 changed files with 16 additions and 15 deletions

View File

@@ -10,11 +10,8 @@ from config import config
from style_bert_vits2.logging import logger
from style_bert_vits2.models import commons
from style_bert_vits2.nlp import cleaned_text_to_sequence, extract_bert_feature
from style_bert_vits2.nlp.japanese import pyopenjtalk_worker as pyopenjtalk
from style_bert_vits2.utils.stdout_wrapper import SAFE_STDOUT
pyopenjtalk.initialize()
def process_line(x):
line, add_blank = x