Skip to content

Commit be4f150

Browse files
authored
Merge pull request #2219 from Jackwaterveg/develop_dev
[ASR] fix wenetspeech conf
2 parents 09487a0 + dca51c5 commit be4f150

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

examples/wenetspeech/asr1/conf/conformer.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ model_conf:
3737
ctc_weight: 0.3
3838
lsm_weight: 0.1 # label smoothing option
3939
length_normalized_loss: false
40+
init_type: 'kaiming_uniform' # !Warning: need to convergence
4041

4142
# https://yaml.org/type/float.html
4243
###########################################
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
if [ $# != 3 ];then
4+
echo "usage: $0 config_path ckpt_prefix jit_model_path"
5+
exit -1
6+
fi
7+
8+
ngpu=$(echo $CUDA_VISIBLE_DEVICES | awk -F "," '{print NF}')
9+
echo "using $ngpu gpus..."
10+
11+
config_path=$1
12+
ckpt_path_prefix=$2
13+
jit_model_export_path=$3
14+
15+
python3 -u ${BIN_DIR}/export.py \
16+
--ngpu ${ngpu} \
17+
--config ${config_path} \
18+
--checkpoint_path ${ckpt_path_prefix} \
19+
--export_path ${jit_model_export_path}
20+
21+
22+
if [ $? -ne 0 ]; then
23+
echo "Failed in export!"
24+
exit 1
25+
fi
26+
27+
28+
exit 0

0 commit comments

Comments
 (0)