fix example/aishell local/train.sh if condition bug, test=asr (#3146)

pull/3798/head
lemondy 2 years ago committed by luotao1
parent c1a15284d7
commit 5657d3ec61

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if [ $# -lt 2 ] && [ $# -gt 3 ];then if [ $# -lt 2 ] || [ $# -gt 3 ];then
echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)" echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)"
exit -1 exit -1
fi fi

@ -17,7 +17,7 @@ if [ ${seed} != 0 ]; then
echo "using seed $seed & FLAGS_cudnn_deterministic=True ..." echo "using seed $seed & FLAGS_cudnn_deterministic=True ..."
fi fi
if [ $# -lt 2 ] && [ $# -gt 3 ];then if [ $# -lt 2 ] || [ $# -gt 3 ];then
echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)" echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)"
exit -1 exit -1
fi fi

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
if [ $# -lt 2 ] && [ $# -gt 3 ];then if [ $# -lt 2 ] || [ $# -gt 3 ];then
echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)" echo "usage: CUDA_VISIBLE_DEVICES=0 ${0} config_path ckpt_name ips(optional)"
exit -1 exit -1
fi fi

Loading…
Cancel
Save