You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
459 B
26 lines
459 B
3 years ago
|
#! /usr/bin/env bash
|
||
3 years ago
|
if [ $# != 1 ];then
|
||
|
echo "usage: ${0} ckpt_dir"
|
||
|
exit -1
|
||
|
fi
|
||
|
|
||
|
ckpt_dir=$1
|
||
|
|
||
3 years ago
|
|
||
3 years ago
|
. ${MAIN_ROOT}/utils/utility.sh
|
||
3 years ago
|
|
||
|
URL='https://deepspeech.bj.bcebos.com/eng_models/baidu_en8k_v1.8_to_v2.x.tar.gz'
|
||
3 years ago
|
MD5=c1676be8505cee436e6f312823e9008c
|
||
3 years ago
|
TARGET=${ckpt_dir}/baidu_en8k_v1.8_to_v2.x.tar.gz
|
||
3 years ago
|
|
||
|
|
||
|
echo "Download BaiduEn8k model ..."
|
||
|
download $URL $MD5 $TARGET
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo "Fail to download BaiduEn8k model!"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
exit 0
|