加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
tc-train-tests.sh 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
set -xe
source $(dirname "$0")/tc-tests-utils.sh
pyver=$1
tf=$2
if [ -z "${pyver}" ]; then
echo "No python version given, aborting."
exit 1
fi;
unset PYTHON_BIN_PATH
unset PYTHONPATH
export PYENV_ROOT="${HOME}/ds-train/.pyenv"
export PATH="${PYENV_ROOT}/bin:${HOME}/bin:$PATH"
mkdir -p ${PYENV_ROOT} || true
mkdir -p ${TASKCLUSTER_ARTIFACTS} || true
mkdir -p /tmp/train || true
install_pyenv "${PYENV_ROOT}"
install_pyenv_virtualenv "$(pyenv root)/plugins/pyenv-virtualenv"
PYENV_NAME=deepspeech-train
pyenv install ${pyver}
pyenv virtualenv ${pyver} ${PYENV_NAME}
source ${PYENV_ROOT}/versions/${pyver}/envs/${PYENV_NAME}/bin/activate
if [ "${tf}" = "mozilla" ]; then
pip install --upgrade ${TENSORFLOW_WHEEL}
grep -v "tensorflow" ${HOME}/DeepSpeech/ds/requirements.txt | pip install --upgrade -r /dev/stdin
fi;
if [ "${tf}" = "upstream" ]; then
pip install --upgrade -r ${HOME}/DeepSpeech/ds/requirements.txt
fi;
download_ctc_kenlm "/tmp/ds"
pushd ${HOME}/DeepSpeech/ds/
time ./bin/run-tc-ldc93s1.sh
popd
deactivate
pyenv uninstall --force ${PYENV_NAME}
cp /tmp/train/output_graph.pb ${TASKCLUSTER_ARTIFACTS}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化