Update preprocess_hubert_f0.py

This commit is contained in:
Stardust·减 2023-07-22 14:57:33 +08:00 committed by GitHub
parent 38257c46c5
commit 640d1361ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -124,7 +124,7 @@ def parallel_process(filenames, num_processes, f0p, diff, mel_extractor):
start = int(i * len(filenames) / num_processes)
end = int((i + 1) * len(filenames) / num_processes)
file_chunk = filenames[start:end]
tasks.append(executor.map(process_batch, file_chunk, f0p, diff, mel_extractor))
tasks.append(executor.submit(process_batch, file_chunk, f0p, diff, mel_extractor))
for task in tqdm(tasks):
task.result()