Skip to content

Commit

Permalink
fix extract f0
Browse files Browse the repository at this point in the history
  • Loading branch information
ddPn08 committed Jul 17, 2023
1 parent 28108ec commit c4a12a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rvc/preprocessing/extract_f0.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import traceback
from concurrent.futures import ProcessPoolExecutor
from typing import *
import multiprocessing as mp

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

with ProcessPoolExecutor() as executer:
with ProcessPoolExecutor(mp_context=mp.get_context("spawn")) as executer:
for i in range(num_processes):
executer.submit(processor, paths[i::num_processes], f0_method, process_id=i)

Expand Down

0 comments on commit c4a12a8

Please sign in to comment.