Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zipformer to VoxPopuli #1622

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
440 changes: 440 additions & 0 deletions egs/voxpopuli/ASR/local/asr_datamodule.py

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions egs/voxpopuli/ASR/local/test_dataloader.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from asr_datamodule import VoxPopuliAsrDataModule
import argparse

def get_parser():
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter
)

return parser

parser = get_parser()
VoxPopuliAsrDataModule.add_arguments(parser)
args = parser.parse_args()

voxpopuli = VoxPopuliAsrDataModule(args)

train_cuts = voxpopuli.train_cuts()
test_cuts = voxpopuli.test_cuts()
dev_cuts = voxpopuli.dev_cuts()

print(train_cuts)
print(test_cuts)
print(dev_cuts)
14 changes: 7 additions & 7 deletions egs/voxpopuli/ASR/prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
# fix segmentation fault reported in https://github.com/k2-fsa/icefall/issues/674
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python

set -euxo pipefail
set -euo pipefail

nj=20
nj=4
stage=-1
stop_stage=100

Expand Down Expand Up @@ -42,9 +42,9 @@ musan_dir=${dl_dir}/musan
#
# See ASR_LANGUAGES in:
# https://github.com/lhotse-speech/lhotse/blob/c5f26afd100885b86e4244eeb33ca1986f3fa923/lhotse/recipes/voxpopuli.py#L54C4-L54C4
lang=en
lang="es"

task=asr
task="asr"

. shared/parse_options.sh || exit 1

Expand Down Expand Up @@ -147,7 +147,7 @@ if [ $stage -le 5 ] && [ $stop_stage -ge 5 ]; then
log "Stage 5: Compute fbank for train set of VoxPopuli"
if [ ! -e data/fbank/.voxpopuli-${task}-${lang}-train.done ]; then
./local/compute_fbank.py --src-dir data/fbank --output-dir data/fbank \
--num-jobs 100 --num-workers ${nj} \
--num-jobs 1000 --num-workers ${nj} \
--prefix "voxpopuli-${task}-${lang}" \
--dataset train \
--trim-to-supervisions True \
Expand All @@ -161,8 +161,8 @@ if [ $stage -le 6 ] && [ $stop_stage -ge 6 ]; then
for dataset in "dev" "test" "train"; do
mkdir -p data/fbank/log/
./local/validate_cutset_manifest.py \
data/fbank/voxpopuli-asr-en_cuts_${dataset}.jsonl.gz \
2>&1 | tee data/fbank/log/validate_voxpopuli-asr-en_cuts_${dataset}.log
data/fbank/voxpopuli-asr-${lang}_cuts_${dataset}.jsonl.gz \
2>&1 | tee data/fbank/log/validate_voxpopuli-asr-${lang}_cuts_${dataset}.log
done
fi

Expand Down
1 change: 1 addition & 0 deletions egs/voxpopuli/ASR/zipformer/asr_datamodule.py
1 change: 1 addition & 0 deletions egs/voxpopuli/ASR/zipformer/beam_search.py
Loading
Loading