|
@@ -14,6 +14,10 @@ from fish_speech.datasets.protos.text_data_stream import pack_pb_stream
|
|
|
from fish_speech.text import g2p
|
|
from fish_speech.text import g2p
|
|
|
from fish_speech.utils.file import load_filelist
|
|
from fish_speech.utils.file import load_filelist
|
|
|
|
|
|
|
|
|
|
+# To avoid CPU overload
|
|
|
|
|
+os.environ["MKL_NUM_THREADS"] = "1"
|
|
|
|
|
+os.environ["OMP_NUM_THREADS"] = "1"
|
|
|
|
|
+
|
|
|
|
|
|
|
|
def task_generator_yaml(config):
|
|
def task_generator_yaml(config):
|
|
|
with open(config, "r") as f:
|
|
with open(config, "r") as f:
|