Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #8 from danpovey/master
Browse files Browse the repository at this point in the history
Piotr's fix to how we call Lhotse
  • Loading branch information
danpovey authored Nov 13, 2020
2 parents 27931f1 + 2831ffe commit 7201fde
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions egs/librispeech/asr/simple_v1/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright (c) 2020 Xiaomi Corporation (authors: Junbo Zhang, Haowen Qiu)
# Apache 2.0

import multiprocessing
import os
from concurrent.futures import ProcessPoolExecutor
from pathlib import Path
Expand Down Expand Up @@ -39,8 +40,8 @@

for partition, manifests in librispeech_manifests.items():
print(partition)
with LilcomFilesWriter(f'{output_dir}/feats_{partition}'
) as storage, ProcessPoolExecutor(num_jobs) as ex:
with LilcomFilesWriter(f'{output_dir}/feats_{partition}') as storage, \
ProcessPoolExecutor(num_jobs, mp_context=multiprocessing.get_context("spawn")) as ex:
cut_set = CutSet.from_manifests(
recordings=manifests['recordings'],
supervisions=manifests['supervisions']).compute_and_store_features(
Expand Down

0 comments on commit 7201fde

Please sign in to comment.