IML-Spikeformer / src /run.sh
Poookeman's picture
Upload folder using huggingface_hub
b66049d verified
Raw
History Blame Contribute Delete
1.18 kB
#!/usr/bin/env bash
# Set bash to 'debug' mode, it will exit on :
# -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands',
set -e
set -u
set -o pipefail
train_set="train_960"
valid_set="dev"
test_sets="dev_clean"
asr_config=conf/tuning/SNN/train_asr_Q_transformer3_HierDecayv2.yaml
lm_config=conf/tuning/train_lm_transformer2.yaml
inference_config=conf/decode_asr.yaml
asr_tag=transformer_HierDecayv2_woBias_XavierInit_Qv7_test
use_lm=false
skip_data_prep=true
skip_train=true
./asr.sh \
--skip_data_prep ${skip_data_prep}\
--skip_train ${skip_train}\
--stage 12 \
--stop_stage 12 \
--lang en \
--ngpu 1 \
--use_lm ${use_lm} \
--nbpe 5000 \
--max_wav_duration 30 \
--asr_tag "${asr_tag}" \
--gpu_inference false \
--speed_perturb_factors "0.9 1.0 1.1" \
--asr_config "${asr_config}" \
--lm_config "${lm_config}" \
--inference_config "${inference_config}" \
--train_set "${train_set}" \
--valid_set "${valid_set}" \
--test_sets "${test_sets}" \
--lm_train_text "data/${train_set}/text data/local/other_text/text" \
--bpe_train_text "data/${train_set}/text" "$@"