Skip to content

Commit c4a12a8

Browse files
committed
fix extract f0
1 parent 28108ec commit c4a12a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rvc/preprocessing/extract_f0.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import traceback
33
from concurrent.futures import ProcessPoolExecutor
44
from typing import *
5+
import multiprocessing as mp
56

67
import numpy as np
78
import pyworld
@@ -213,7 +214,7 @@ def run(training_dir: str, num_processes: int, f0_method: str):
213214
os.makedirs(dir[0], exist_ok=True)
214215
os.makedirs(dir[1], exist_ok=True)
215216

216-
with ProcessPoolExecutor() as executer:
217+
with ProcessPoolExecutor(mp_context=mp.get_context("spawn")) as executer:
217218
for i in range(num_processes):
218219
executer.submit(processor, paths[i::num_processes], f0_method, process_id=i)
219220

0 commit comments

Comments
 (0)