mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
5b3ec88cc4
commit
44cfba7d7d
Binary file not shown.
@ -13,7 +13,7 @@ stop_stage=100
|
|||||||
# directories and files. If not, they will be downloaded
|
# directories and files. If not, they will be downloaded
|
||||||
# by this script automatically.
|
# by this script automatically.
|
||||||
#
|
#
|
||||||
# - $dl_dir/tedlium3
|
# - $dl_dir/tedlium2
|
||||||
# You can find data, doc, legacy, LM, etc, inside it.
|
# You can find data, doc, legacy, LM, etc, inside it.
|
||||||
# You can download them from https://www.openslr.org/51
|
# You can download them from https://www.openslr.org/51
|
||||||
#
|
#
|
||||||
@ -58,9 +58,9 @@ if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
|
|||||||
#
|
#
|
||||||
# ln -sfv /path/to/tedlium3 $dl_dir/tedlium3
|
# ln -sfv /path/to/tedlium3 $dl_dir/tedlium3
|
||||||
#
|
#
|
||||||
if [ ! -d $dl_dir/tedlium3 ]; then
|
if [ ! -d $dl_dir/tedlium2 ]; then
|
||||||
lhotse download tedlium $dl_dir
|
lhotse download tedlium $dl_dir
|
||||||
mv $dl_dir/TEDLIUM_release-3 $dl_dir/tedlium3
|
mv $dl_dir/TEDLIUM_release-2 $dl_dir/tedlium2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If you have pre-downloaded it to /path/to/musan,
|
# If you have pre-downloaded it to /path/to/musan,
|
||||||
@ -74,13 +74,13 @@ if [ $stage -le 0 ] && [ $stop_stage -ge 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then
|
if [ $stage -le 1 ] && [ $stop_stage -ge 1 ]; then
|
||||||
log "Stage 1: Prepare tedlium3 manifests"
|
log "Stage 1: Prepare tedlium2 manifests"
|
||||||
if [ ! -f data/manifests/.tedlium3.done ]; then
|
if [ ! -f data/manifests/.tedlium2.done ]; then
|
||||||
# We assume that you have downloaded the tedlium3 corpus
|
# We assume that you have downloaded the tedlium3 corpus
|
||||||
# to $dl_dir/tedlium3
|
# to $dl_dir/tedlium3
|
||||||
mkdir -p data/manifests
|
mkdir -p data/manifests
|
||||||
lhotse prepare tedlium $dl_dir/tedlium3 data/manifests
|
lhotse prepare tedlium $dl_dir/tedlium2 data/manifests
|
||||||
touch data/manifests/.tedlium3.done
|
touch data/manifests/.tedlium2.done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -96,12 +96,12 @@ if [ $stage -le 2 ] && [ $stop_stage -ge 2 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $stage -le 3 ] && [ $stop_stage -ge 3 ]; then
|
if [ $stage -le 3 ] && [ $stop_stage -ge 3 ]; then
|
||||||
log "Stage 3: Compute fbank for tedlium3"
|
log "Stage 3: Compute fbank for tedlium2"
|
||||||
|
|
||||||
if [ ! -e data/fbank/.tedlium3.done ]; then
|
if [ ! -e data/fbank/.tedlium2.done ]; then
|
||||||
mkdir -p data/fbank
|
mkdir -p data/fbank
|
||||||
python3 ./local/compute_fbank_tedlium.py
|
python3 ./local/compute_fbank_tedlium.py
|
||||||
touch data/fbank/.tedlium3.done
|
touch data/fbank/.tedlium2.done
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user