Skip to content

Commit

Permalink
Update preprocess_hubert_f0.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Stardust-minus committed Jul 22, 2023
1 parent 38257c4 commit 640d136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion preprocess_hubert_f0.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 640d136

Please sign in to comment.