Split SDB tests from basic training tests to speed up CI dependents
This commit is contained in:
parent
e069b6d61f
commit
07d2c39138
|
@ -0,0 +1,60 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
source $(dirname "$0")/tc-tests-utils.sh
|
||||||
|
|
||||||
|
extract_python_versions "$1" "pyver" "pyver_pkg" "py_unicode_type" "pyconf" "pyalias"
|
||||||
|
|
||||||
|
bitrate=$2
|
||||||
|
|
||||||
|
decoder_src=$3
|
||||||
|
|
||||||
|
if [ "$decoder_src" = "--pypi" ]; then
|
||||||
|
# Disable automatically picking up decoder package built in this CI group
|
||||||
|
export DECODER_ARTIFACTS_ROOT=""
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p ${TASKCLUSTER_ARTIFACTS} || true
|
||||||
|
mkdir -p /tmp/train || true
|
||||||
|
mkdir -p /tmp/train_tflite || true
|
||||||
|
|
||||||
|
virtualenv_activate "${pyalias}" "deepspeech"
|
||||||
|
|
||||||
|
set -o pipefail
|
||||||
|
pip install --upgrade pip==19.3.1 setuptools==45.0.0 wheel==0.33.6 | cat
|
||||||
|
pushd ${HOME}/DeepSpeech/ds
|
||||||
|
pip install --upgrade . | cat
|
||||||
|
popd
|
||||||
|
set +o pipefail
|
||||||
|
|
||||||
|
# Prepare correct arguments for training
|
||||||
|
case "${bitrate}" in
|
||||||
|
8k)
|
||||||
|
sample_rate=8000
|
||||||
|
sample_name='LDC93S1_pcms16le_1_8000.wav'
|
||||||
|
;;
|
||||||
|
16k)
|
||||||
|
sample_rate=16000
|
||||||
|
sample_name='LDC93S1_pcms16le_1_16000.wav'
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# Easier to rename to that we can exercize the LDC93S1 importer code to
|
||||||
|
# generate the CSV file.
|
||||||
|
echo "Moving ${sample_name} to LDC93S1.wav"
|
||||||
|
mv "${DS_ROOT_TASK}/DeepSpeech/ds/data/smoke_test/${sample_name}" "${DS_ROOT_TASK}/DeepSpeech/ds/data/smoke_test/LDC93S1.wav"
|
||||||
|
|
||||||
|
pushd ${HOME}/DeepSpeech/ds/
|
||||||
|
# Testing single SDB source
|
||||||
|
time ./bin/run-tc-ldc93s1_new_sdb.sh 220 "${sample_rate}"
|
||||||
|
# Testing interleaved source (SDB+CSV combination) - run twice to test preprocessed features
|
||||||
|
time ./bin/run-tc-ldc93s1_new_sdb_csv.sh 109 "${sample_rate}"
|
||||||
|
time ./bin/run-tc-ldc93s1_new_sdb_csv.sh 1 "${sample_rate}"
|
||||||
|
popd
|
||||||
|
|
||||||
|
pushd ${HOME}/DeepSpeech/ds/
|
||||||
|
time ./bin/run-tc-ldc93s1_checkpoint_sdb.sh
|
||||||
|
popd
|
||||||
|
|
||||||
|
virtualenv_deactivate "${pyalias}" "deepspeech"
|
|
@ -50,11 +50,6 @@ pushd ${HOME}/DeepSpeech/ds/
|
||||||
time ./bin/run-tc-ldc93s1_new.sh 249 "${sample_rate}"
|
time ./bin/run-tc-ldc93s1_new.sh 249 "${sample_rate}"
|
||||||
time ./bin/run-tc-ldc93s1_new.sh 1 "${sample_rate}"
|
time ./bin/run-tc-ldc93s1_new.sh 1 "${sample_rate}"
|
||||||
time ./bin/run-tc-ldc93s1_tflite.sh "${sample_rate}"
|
time ./bin/run-tc-ldc93s1_tflite.sh "${sample_rate}"
|
||||||
# Testing single SDB source
|
|
||||||
time ./bin/run-tc-ldc93s1_new_sdb.sh 220 "${sample_rate}"
|
|
||||||
# Testing interleaved source (SDB+CSV combination) - run twice to test preprocessed features
|
|
||||||
time ./bin/run-tc-ldc93s1_new_sdb_csv.sh 109 "${sample_rate}"
|
|
||||||
time ./bin/run-tc-ldc93s1_new_sdb_csv.sh 1 "${sample_rate}"
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
cp /tmp/train/output_graph.pb ${TASKCLUSTER_ARTIFACTS}
|
cp /tmp/train/output_graph.pb ${TASKCLUSTER_ARTIFACTS}
|
||||||
|
@ -69,7 +64,6 @@ cp /tmp/train/output_graph.pbmm ${TASKCLUSTER_ARTIFACTS}
|
||||||
|
|
||||||
pushd ${HOME}/DeepSpeech/ds/
|
pushd ${HOME}/DeepSpeech/ds/
|
||||||
time ./bin/run-tc-ldc93s1_checkpoint.sh
|
time ./bin/run-tc-ldc93s1_checkpoint.sh
|
||||||
time ./bin/run-tc-ldc93s1_checkpoint_sdb.sh
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
virtualenv_deactivate "${pyalias}" "deepspeech"
|
virtualenv_deactivate "${pyalias}" "deepspeech"
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
build:
|
||||||
|
template_file: test-linux-opt-base.tyml
|
||||||
|
dependencies:
|
||||||
|
- "linux-amd64-ctc-opt"
|
||||||
|
system_setup:
|
||||||
|
>
|
||||||
|
apt-get -qq update && apt-get -qq -y install ${training.packages_trusty.apt}
|
||||||
|
args:
|
||||||
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-extra-tests.sh 3.5.8:m 16k"
|
||||||
|
metadata:
|
||||||
|
name: "DeepSpeech Linux AMD64 CPU 8kHz all training features Py3.7"
|
||||||
|
description: "Training (all features) a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
|
@ -0,0 +1,12 @@
|
||||||
|
build:
|
||||||
|
template_file: test-linux-opt-base.tyml
|
||||||
|
dependencies:
|
||||||
|
- "linux-amd64-ctc-opt"
|
||||||
|
system_setup:
|
||||||
|
>
|
||||||
|
apt-get -qq update && apt-get -qq -y install ${training.packages_trusty.apt}
|
||||||
|
args:
|
||||||
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-extra-tests.sh 3.6.10:m 16k"
|
||||||
|
metadata:
|
||||||
|
name: "DeepSpeech Linux AMD64 CPU 8kHz all training features Py3.7"
|
||||||
|
description: "Training (all features) a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
|
@ -0,0 +1,12 @@
|
||||||
|
build:
|
||||||
|
template_file: test-linux-opt-base.tyml
|
||||||
|
dependencies:
|
||||||
|
- "linux-amd64-ctc-opt"
|
||||||
|
system_setup:
|
||||||
|
>
|
||||||
|
apt-get -qq update && apt-get -qq -y install ${training.packages_trusty.apt}
|
||||||
|
args:
|
||||||
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-extra-tests.sh 3.7.6:m 16k"
|
||||||
|
metadata:
|
||||||
|
name: "DeepSpeech Linux AMD64 CPU 8kHz all training features Py3.7"
|
||||||
|
description: "Training (all features) a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
|
@ -0,0 +1,12 @@
|
||||||
|
build:
|
||||||
|
template_file: test-linux-opt-base.tyml
|
||||||
|
dependencies:
|
||||||
|
- "linux-amd64-ctc-opt"
|
||||||
|
system_setup:
|
||||||
|
>
|
||||||
|
apt-get -qq update && apt-get -qq -y install ${training.packages_trusty.apt}
|
||||||
|
args:
|
||||||
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-extra-tests.sh 3.6.10:m 8k"
|
||||||
|
metadata:
|
||||||
|
name: "DeepSpeech Linux AMD64 CPU 8kHz all training features Py3.7"
|
||||||
|
description: "Training (all features) a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
|
@ -0,0 +1,12 @@
|
||||||
|
build:
|
||||||
|
template_file: test-linux-opt-base.tyml
|
||||||
|
dependencies:
|
||||||
|
- "linux-amd64-ctc-opt"
|
||||||
|
system_setup:
|
||||||
|
>
|
||||||
|
apt-get -qq update && apt-get -qq -y install ${training.packages_trusty.apt}
|
||||||
|
args:
|
||||||
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-extra-tests.sh 3.7.6:m 8k"
|
||||||
|
metadata:
|
||||||
|
name: "DeepSpeech Linux AMD64 CPU 8kHz all training features Py3.7"
|
||||||
|
description: "Training (all features) a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
|
@ -8,5 +8,5 @@ build:
|
||||||
args:
|
args:
|
||||||
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.5.8:m 16k"
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.5.8:m 16k"
|
||||||
metadata:
|
metadata:
|
||||||
name: "DeepSpeech Linux AMD64 CPU 16kHz training Py3.5"
|
name: "DeepSpeech Linux AMD64 CPU 16kHz basic training Py3.5"
|
||||||
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 16kHz Python 3.5, CPU only, optimized version"
|
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 16kHz Python 3.5, CPU only, optimized version"
|
||||||
|
|
|
@ -8,5 +8,5 @@ build:
|
||||||
args:
|
args:
|
||||||
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.6.10:m 16k"
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.6.10:m 16k"
|
||||||
metadata:
|
metadata:
|
||||||
name: "DeepSpeech Linux AMD64 CPU 16kHz training Py3.6"
|
name: "DeepSpeech Linux AMD64 CPU 16kHz basic training Py3.6"
|
||||||
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 16kHz Python 3.6, CPU only, optimized version"
|
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 16kHz Python 3.6, CPU only, optimized version"
|
||||||
|
|
|
@ -8,5 +8,5 @@ build:
|
||||||
args:
|
args:
|
||||||
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.7.6:m 16k"
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.7.6:m 16k"
|
||||||
metadata:
|
metadata:
|
||||||
name: "DeepSpeech Linux AMD64 CPU 16kHz training Py3.7"
|
name: "DeepSpeech Linux AMD64 CPU 16kHz basic training Py3.7"
|
||||||
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 16kHz Python 3.7, CPU only, optimized version"
|
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 16kHz Python 3.7, CPU only, optimized version"
|
||||||
|
|
|
@ -8,5 +8,5 @@ build:
|
||||||
args:
|
args:
|
||||||
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.6.10:m 8k"
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.6.10:m 8k"
|
||||||
metadata:
|
metadata:
|
||||||
name: "DeepSpeech Linux AMD64 CPU 8kHz training Py3.6"
|
name: "DeepSpeech Linux AMD64 CPU 8kHz basic training Py3.6"
|
||||||
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.6, CPU only, optimized version"
|
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.6, CPU only, optimized version"
|
||||||
|
|
|
@ -8,5 +8,5 @@ build:
|
||||||
args:
|
args:
|
||||||
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.7.6:m 8k"
|
tests_cmdline: "${system.homedir.linux}/DeepSpeech/ds/taskcluster/tc-train-tests.sh 3.7.6:m 8k"
|
||||||
metadata:
|
metadata:
|
||||||
name: "DeepSpeech Linux AMD64 CPU 8kHz training Py3.7"
|
name: "DeepSpeech Linux AMD64 CPU 8kHz basic training Py3.7"
|
||||||
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
description: "Training a DeepSpeech LDC93S1 model for Linux/AMD64 8kHz Python 3.7, CPU only, optimized version"
|
||||||
|
|
Loading…
Reference in New Issue