Skip to content

Commit

Permalink
changed unnecessary variables
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi committed Feb 18, 2018
1 parent 77a0a33 commit 02428f5
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 70 deletions.
8 changes: 2 additions & 6 deletions egs/ami/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 3 ]; then
echo "stage 3: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -264,7 +260,7 @@ if [ ${stage} -le 4 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--debugmode ${debugmode} \
Expand Down
8 changes: 2 additions & 6 deletions egs/an4/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 3 ]; then
echo "stage 3: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -226,7 +222,7 @@ if [ ${stage} -le 4 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--debugmode ${debugmode} \
Expand Down
8 changes: 2 additions & 6 deletions egs/chime4/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 3 ]; then
echo "stage 3: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -246,7 +242,7 @@ if [ ${stage} -le 4 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--debugmode ${debugmode} \
Expand Down
8 changes: 2 additions & 6 deletions egs/csj/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,14 +190,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 4 ]; then
echo "stage 4: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -258,7 +254,7 @@ if [ ${stage} -le 5 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--debugmode ${debugmode} \
Expand Down
8 changes: 2 additions & 6 deletions egs/fisher_swbd/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

lmexpdir=exp/train_rnnlm_2layer_bs256
mkdir -p ${lmexpdir}
if [ ${stage} -le 3 ]; then
Expand Down Expand Up @@ -222,7 +218,7 @@ if [ ${stage} -le 4 ]; then
echo "stage 4: Network Training"

${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -282,7 +278,7 @@ if [ ${stage} -le 5 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--recog-feat "$feats" \
Expand Down
8 changes: 2 additions & 6 deletions egs/hkust/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 4 ]; then
echo "stage 4: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -273,7 +269,7 @@ if [ ${stage} -le 5 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--recog-feat "$feats" \
Expand Down
8 changes: 2 additions & 6 deletions egs/librispeech/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 3 ]; then
echo "stage 3: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -233,7 +229,7 @@ if [ ${stage} -le 4 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--recog-feat "$feats" \
Expand Down
16 changes: 6 additions & 10 deletions egs/swbd/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ tag="" # tag for managing experiments.

. utils/parse_options.sh || exit 1;

. ./path.sh
. ./cmd.sh
. ./path.sh
. ./cmd.sh

# Set bash to 'debug' mode, it will exit on :
# -e 'error', -u 'undefined variable', -o ... 'error in pipeline', -x 'print commands',
Expand Down Expand Up @@ -122,7 +122,7 @@ if [ ${stage} -le 1 ]; then
n=$[`cat data/train/segments | wc -l` - 4000]
utils/subset_data_dir.sh --last data/train $n data/train_nodev
utils/data/remove_dup_utts.sh 300 data/train_nodev data/${train_set} # 286hr

# compute global CMVN
compute-cmvn-stats scp:data/${train_set}/feats.scp data/${train_set}/cmvn.ark

Expand Down Expand Up @@ -179,15 +179,11 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 3 ]; then
echo "stage 3: Network Training"

${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -246,7 +242,7 @@ if [ ${stage} -le 4 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--recog-feat "$feats" \
Expand All @@ -261,7 +257,7 @@ if [ ${stage} -le 4 ]; then
wait

score_sclite.sh --wer true --nlsyms ${nlsyms} ${expdir}/${decode_dir} ${dict}

) &
done
wait
Expand Down
8 changes: 2 additions & 6 deletions egs/tedlium/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

# It takes a few days. If you just want to end-to-end ASR without LM,
# you can skip this and remove --rnnlm option in the recognition (stage 5)
lmexpdir=exp/train_rnnlm_2layer_bs2048
Expand All @@ -178,7 +174,7 @@ fi
if [ ${stage} -le 4 ]; then
echo "stage 3: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -238,7 +234,7 @@ if [ ${stage} -le 5 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--debugmode ${debugmode} \
Expand Down
8 changes: 2 additions & 6 deletions egs/voxforge/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,10 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 3 ]; then
echo "stage 3: Network Training"
${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -225,7 +221,7 @@ if [ ${stage} -le 4 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--debugmode ${debugmode} \
Expand Down
8 changes: 2 additions & 6 deletions egs/wsj/asr1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,11 @@ else
fi
mkdir -p ${expdir}

# set train and decode script
train_script=asr_train.py
decode_script=asr_recog.py

if [ ${stage} -le 4 ]; then
echo "stage 4: Network Training"

${cuda_cmd} ${expdir}/train.log \
${train_script} \
asr_train.py \
--gpu ${gpu} \
--backend ${backend} \
--outdir ${expdir}/results \
Expand Down Expand Up @@ -258,7 +254,7 @@ if [ ${stage} -le 5 ]; then
gpu=-1

${decode_cmd} JOB=1:${nj} ${expdir}/${decode_dir}/log/decode.JOB.log \
${decode_script} \
asr_recog.py \
--gpu ${gpu} \
--backend ${backend} \
--recog-feat "$feats" \
Expand Down

0 comments on commit 02428f5

Please sign in to comment.