Skip to content

Commit

Permalink
[egs] Add set -o pipefail to all recipes (exit on Python errors) (ast…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashaag authored Jul 24, 2020
1 parent db5f71f commit e36c276
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 13 deletions.
2 changes: 2 additions & 0 deletions egs/avspeech/looking-to-listen/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash

# Exit on error
set -e
set -o pipefail

parse_boolean() {
# parses yaml boolean to flag.
Expand Down
7 changes: 5 additions & 2 deletions egs/dns_challenge/baseline/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump DNS dataset.
storage_dir=
Expand Down Expand Up @@ -92,4 +95,4 @@ if [[ $stage -le 5 ]]; then
--denoise_path $clone_dir/DNS-Challenge/datasets/test_set/real_recordings/ \
--use_gpu $eval_use_gpu \
--exp_dir $expdir
fi
fi
5 changes: 4 additions & 1 deletion egs/fuss/baseline/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory
storage_dir=
Expand Down
5 changes: 4 additions & 1 deletion egs/kinect-wsj/DeepClustering/run.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

set -e # Exit on error
# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
storage_dir=
Expand Down
5 changes: 4 additions & 1 deletion egs/librimix/ConvTasNet/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# If you haven't generated LibriMix start from stage 0
# Main storage directory. You'll need disk space to store LibriSpeech, WHAM noises
Expand Down
7 changes: 5 additions & 2 deletions egs/sms_wsj/CaCGMM/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail


storage_dir= # Main storage directory (Need disk space)
Expand Down Expand Up @@ -49,4 +52,4 @@ if [[ $stage -le 2 ]]; then
${python_path} -m pip install -e local/pb_bss[all]
fi
mpiexec -n $num_jobs ${python_path} start_evaluation.py --json_path $data_dir/sms_wsj.json
fi
fi
5 changes: 4 additions & 1 deletion egs/wham/ConvTasNet/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
Expand Down
5 changes: 4 additions & 1 deletion egs/wham/DPRNN/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
Expand Down
5 changes: 4 additions & 1 deletion egs/wham/DynamicMixing/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
Expand Down
5 changes: 4 additions & 1 deletion egs/wham/TwoStep/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
Expand Down
5 changes: 4 additions & 1 deletion egs/whamr/TasNet/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
Expand Down
5 changes: 4 additions & 1 deletion egs/wsj0-mix/DeepClustering/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash
set -e # Exit on error

# Exit on error
set -e
set -o pipefail

# Main storage directory. You'll need disk space to dump the WHAM mixtures and the wsj0 wav
# files if you start from sphere files.
Expand Down

0 comments on commit e36c276

Please sign in to comment.