File tree 2 files changed +29
-0
lines changed
examples/wenetspeech/asr1
2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ model_conf:
37
37
ctc_weight : 0.3
38
38
lsm_weight : 0.1 # label smoothing option
39
39
length_normalized_loss : false
40
+ init_type : ' kaiming_uniform' # !Warning: need to convergence
40
41
41
42
# https://yaml.org/type/float.html
42
43
# ##########################################
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments