当前位置:网站首页>local/chain/run_ tdnn.sh:
local/chain/run_ tdnn.sh:
2022-07-28 20:09:00 【Hu Xi Hu Xi】
bash -x local/nnet3/run_ivector_common.sh --stage $stage || exit 1
# It shows that randomly changing the speed and volume of training data to expand diversity
if [ $stage -le 7 ]; then
# Get the alignments as lattices (gives the LF-MMI training more freedom).
# use the same num-jobs as the alignments Use alignment as a word map file
nj=$(cat $ali_dir/num_jobs) || exit 1;
steps/align_fmllr_lats.sh --nj $nj --cmd "$train_cmd" data/$train_set \
data/lang exp/tri5a exp/tri5a_sp_lats
rm exp/tri5a_sp_lats/fsts.*.gz # save space
fi
# Down to 9 Reading a book P237
if [ $stage -le 8 ]; then
# Create a version of the lang/ directory that has one state per phone in the
# topo file. [note, it really has two states.. the first one is only repeated
# once, the second one has zero or more repeats.]
rm -rf $lang
cp -r data/lang $lang
silphonelist=$(cat $lang/phones/silence.csl) || exit 1;
nonsilphonelist=$(cat $lang/phones/nonsilence.csl) || exit 1;
# Use our special topology... note that later on may have to tune this
# topology.
steps/nnet3/chain/gen_topo.py $nonsilphonelist $silphonelist >$lang/topo
fi
if [ $stage -le 9 ]; then
# Build a tree using our new topology. This is the critically different
# step compared with other recipes.
silphonelist=$(cat $lang/phones/silence.csl) || exit 1;
nonsilphonelist=$(cat $lang/phones/nonsilence.csl) || exit 1;
# Use our special topology... note that later on may have to tune this
# topology.
steps/nnet3/chain/gen_topo.py $nonsilphonelist $silphonelist >$lang/topo
fi
if [ $stage -le 9 ]; then
# Build a tree using our new topology. This is the critically different
# step compared with other recipes.
steps/nnet3/chain/build_tree.sh --frame-subsampling-factor 3 \
--context-opts "--context-width=2 --central-position=1" \
--cmd "$train_cmd" 5000 data/$train_set $lang $ali_dir $treedir
fi
Definition of model structure , In two parts , One part is the description of the model structure that is easy for users to understand , stay kaldi Called xconfig; The second part is kaldi What is really used in the training process config, Generally, the following script
steps/nnet3/xconfig_to_configs.py --xconfig-file $dir/configs/network.xconfig --config-dir $dir/configs/
According to the user-defined xconfig produce .
if [ $stage -le 10 ]; then
echo "$0: creating neural net configs using the xconfig parser";
num_targets=$(tree-info $treedir/tree |grep num-pdfs|awk '{print $2}')# Number of neural network outputs
learning_rate_factor=$(echo "print (0.5/$xent_regularize)" | python)# Learning rate adjustment ratio
# Decoding part
graph_dir=$dir/graph
if [ $stage -le 13 ]; then
for test_set in dev test; do
steps/nnet3/decode.sh --acwt 1.0 --post-decode-acwt 10.0 \
--nj 10 --cmd "$decode_cmd" \
--online-ivector-dir exp/nnet3/ivectors_$test_set \
$graph_dir data/${test_set}_hires $dir/decode_${test_set} || exit 1;
done
fi
边栏推荐
- [network] communication across regional networks learn how routing tables work
- Source insight project import and use tutorial
- Know small and medium LAN WLAN
- Information management system and games based on C language
- mmo及时战斗游戏中的场景线程分配
- Overcome the "fear of looking at teeth", and we use technology to change the industry
- English translation Portuguese - batch English conversion Portuguese - free translation and conversion of various languages
- Two methods to judge the size end
- Design of air combat game based on qtgui image interface
- Concurrent programming, do you really understand?
猜你喜欢
![[C language] function](/img/81/c185e2bb5eccc13433483f9558f52a.png)
[C language] function

JVM (24) -- performance monitoring and tuning (5) -- Analyzing GC logs

Deploy ZABBIX automatically with saltstack

Cloud computing notes part.1 - system management

中国能否在元宇宙的未来发展中取得突破,占领高地?

9. Pointer of C language (4) pointer and one-dimensional array, pointer operation

Article translation software - batch free translation software supports major translation interfaces

9. Pointer of C language (1) what is pointer and how to define pointer variables

Basic usage of docker
![[C language] Hanoi Tower problem [recursion]](/img/d8/ff66928c2bc2ad906e38a360a8cf94.png)
[C language] Hanoi Tower problem [recursion]
随机推荐
Know small and medium LAN WLAN
软考中级(系统集成项目管理工程师)高频考点
WPF--实现WebSocket服务端
HSETNX KEY_ Name field value usage
Deploy ZABBIX automatically with saltstack
Servlet learning notes
Failed to install app-debug. apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
Netcoreapi operation excel table
最大交换[贪心思想&单调栈实现]
[C language] string reverse order implementation (recursion and iteration)
[C language] print pattern summary
Zfoo adds routes similar to mydog
数字图像理论知识(一)(个人浅析)
Cdga | how can the industrial Internet industry do a good job in data governance?
通信网络基础知识01
[C language] Fibonacci sequence [recursion and iteration]
[C language] guessing numbers game [function]
Use Hal Library of STM32 to drive 1.54 inch TFT screen (240*240 st7789v)
XOR operation and its usage
Kubeedge releases white paper on cloud native edge computing threat model and security protection technology