From 02122667307f54b63f1eefe787979ea3279de099 Mon Sep 17 00:00:00 2001 From: Yuekai Zhang Date: Thu, 22 Feb 2024 16:21:23 +0800 Subject: [PATCH] change to licomchunky writer --- egs/aishell4/ASR/local/compute_fbank_aishell4.py | 6 +++--- egs/alimeeting/ASR/prepare.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/egs/aishell4/ASR/local/compute_fbank_aishell4.py b/egs/aishell4/ASR/local/compute_fbank_aishell4.py index 235efe7e1..2ecae7b3d 100755 --- a/egs/aishell4/ASR/local/compute_fbank_aishell4.py +++ b/egs/aishell4/ASR/local/compute_fbank_aishell4.py @@ -29,7 +29,7 @@ import os from pathlib import Path import torch -from lhotse import ChunkedLilcomHdf5Writer, CutSet, WhisperFbank, WhisperFbankConfig, Fbank, FbankConfig +from lhotse import LilcomChunkyWriter, CutSet, WhisperFbank, WhisperFbankConfig, Fbank, FbankConfig from lhotse.recipes.utils import read_manifests_if_cached from icefall.utils import get_executor, str2bool @@ -98,9 +98,9 @@ def compute_fbank_aishell4(num_mel_bins: int = 80, perturb_speed: bool = False, # when an executor is specified, make more partitions num_jobs=num_jobs if ex is None else 80, executor=ex, - storage_type=ChunkedLilcomHdf5Writer, + storage_type=LilcomChunkyWriter, ) - + logging.info("About splitting cuts into smaller chunks") cut_set = cut_set.trim_to_supervisions( keep_overlapping=False, diff --git a/egs/alimeeting/ASR/prepare.sh b/egs/alimeeting/ASR/prepare.sh index 3026c6dd6..8b0366c97 100755 --- a/egs/alimeeting/ASR/prepare.sh +++ b/egs/alimeeting/ASR/prepare.sh @@ -5,8 +5,8 @@ export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python set -eou pipefail -stage=-1 -stop_stage=100 +stage=20 +stop_stage=20 perturb_speed=true # We assume dl_dir (download dir) contains the following