forked from Gastron/sb-libri-hmmdnn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run-xent.sh
66 lines (53 loc) · 2.35 KB
/
run-xent.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/usr/bin/env bash
# Set this to somewhere where you want to put your data, or where
# someone else has already put it. You'll want to change this
# if you're not on the CLSP grid.
data="/scratch/elec/puhe/c/librispeech/"
# base url for downloads.
data_url=www.openslr.org/resources/12
lm_url=www.openslr.org/resources/11
mfccdir=mfcc
stage=1
. ./cmd.sh
. ./path.sh
. parse_options.sh
# you might not want to do this for interactive shells.
set -e
# NOTE: Run run.sh first!
if [ $stage -le 24 ]; then
local/chain/run_training.sh --py_script local/chain/sb-train-xent.py --hparams hyperparams/chain/New-CRDNN-FF-10-XENT.yaml
fi
if [ $stage -le 25 ]; then
srun --mem 32G --time 1:0:0 -c4 utils/mkgraph.sh data/lang_bpe.5000.varikn/ exp/chain/tree exp/chain/graph/graph_bpe.5000.varikn_xent
fi
if [ $stage -le 27 ]; then
local/chain/decode.sh --datadir data/dev_clean \
--hparams hyperparams/chain/New-CRDNN-FF-10-XENT.yaml \
--py_script local/chain/sb-test-xent.py \
--graphdir exp/chain/graph/graph_bpe.5000.varikn_xent \
--acwt 0.1 --post-decode-acwt 1.0 \
--decodedir "exp/chain/New-CRDNN-FF-10-XENT/2602-2256units/decode_dev_clean_bpe.5000.varikn_acwt0.1"
local/chain/decode.sh --datadir data/dev_other/ \
--hparams hyperparams/chain/New-CRDNN-FF-10-XENT.yaml \
--py_script local/chain/sb-test-xent.py \
--graphdir exp/chain/graph/graph_bpe.5000.varikn_xent \
--acwt 1.0 --post-decode-acwt 10.0 \
--decodedir "exp/chain/New-CRDNN-FF-10-XENT/2602-2256units/decode_dev_other_bpe.5000.varikn_acwt0.1"
fi
if [ $stage -le 28 ]; then
local/chain/run_training.sh \
--py_script local/chain/sb-train-xent.py \
--hparams "hyperparams/chain/New-CRDNN-FF-10-XENT-contd.yaml"
fi
if [ $stage -le 29 ]; then
local/chain/decode.sh --datadir data/dev_clean \
--hparams hyperparams/chain/New-CRDNN-FF-10-XENT-contd.yaml \
--py_script local/chain/sb-test-xent.py \
--acwt 1.0 --post-decode-acwt 10.0 \
--decodedir "exp/chain/New-CRDNN-FF-10-XENT-contd/2602-2256units/decode_dev_clean_bpe.5000.varikn_acwt1.0"
local/chain/decode.sh --datadir data/dev_other/ \
--hparams hyperparams/chain/New-CRDNN-FF-10-XENT-contd.yaml \
--py_script local/chain/sb-test-xent.py \
--acwt 1.0 --post-decode-acwt 10.0 \
--decodedir "exp/chain/New-CRDNN-FF-10-XENT-contd/2602-2256units/decode_dev_other_bpe.5000.varikn_acwt1.0"
fi