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.
24 lines
313 B
24 lines
313 B
4 years ago
|
#! /usr/bin/env bash
|
||
|
|
||
|
|
||
|
# download language model
|
||
|
bash local/download_lm_ch.sh
|
||
|
if [ $? -ne 0 ]; then
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
python3 -u ${BIN_DIR}/infer.py \
|
||
|
--device 'gpu' \
|
||
|
--nproc 1 \
|
||
|
--config conf/deepspeech2.yaml \
|
||
|
--checkpoint_path ${1}
|
||
|
|
||
|
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo "Failed in inference!"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
|
||
|
exit 0
|