Skip to content

Commit

Permalink
Moved signal augmentation tests to own test config
Browse files Browse the repository at this point in the history
  • Loading branch information
tilmankamp committed May 18, 2020
1 parent 96caa2d commit ac9a17d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
28 changes: 28 additions & 0 deletions taskcluster/tc-signal_augmentation-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash

set -xe

source $(dirname "$0")/tc-tests-utils.sh

extract_python_versions "$1" "pyver" "pyver_pkg" "py_unicode_type" "pyconf" "pyalias"

ds=$2

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

pushd ${HOME}/DeepSpeech/ds/
time ./bin/run-tc-signal_augmentations.sh
popd

virtualenv_deactivate "${pyalias}" "deepspeech"
2 changes: 0 additions & 2 deletions taskcluster/tc-train-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ 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 signal augmentations
time ./bin/run-tc-signal_augmentations.sh
# Run twice to test preprocessed features
time ./bin/run-tc-ldc93s1_new.sh 249 "${sample_rate}"
time ./bin/run-tc-ldc93s1_new.sh 1 "${sample_rate}"
Expand Down
12 changes: 12 additions & 0 deletions taskcluster/test-signal_augmentations-linux-amd64-py36m-opt.yml
Original file line number Diff line number Diff line change
@@ -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-signal_augmentation-tests.sh 3.6.10:m"
metadata:
name: "DeepSpeech Linux AMD64 CPU signal augmentations Py3.6"
description: "Augmenting LDC93S1 sample in different ways for Linux/AMD64 16kHz Python 3.6, CPU only, optimized version"

0 comments on commit ac9a17d

Please sign in to comment.