зеркало из https://github.com/mozilla/DeepSpeech.git
26 строки
562 B
Bash
26 строки
562 B
Bash
#!/bin/bash
|
|
|
|
set -xe
|
|
|
|
source $(dirname "$0")/tc-tests-utils.sh
|
|
|
|
bitrate=$1
|
|
set_ldc_sample_filename "${bitrate}"
|
|
|
|
model_source=${DEEPSPEECH_TEST_MODEL//.pb/.tflite}
|
|
model_name=$(basename "${model_source}")
|
|
export DEEPSPEECH_ARTIFACTS_ROOT=${DEEPSPEECH_ARTIFACTS_TFLITE_ROOT}
|
|
export DATA_TMP_DIR=${TASKCLUSTER_TMP_DIR}
|
|
|
|
download_material "${TASKCLUSTER_TMP_DIR}/ds"
|
|
|
|
export PATH=${TASKCLUSTER_TMP_DIR}/ds/:$PATH
|
|
|
|
if [ "${OS}" = "Darwin" ]; then
|
|
export DYLD_LIBRARY_PATH=$TESTS_BREW/lib/:$DYLD_LIBRARY_PATH
|
|
fi;
|
|
|
|
check_versions
|
|
|
|
run_tflite_basic_inference_tests
|