Skip to content

Commit

Permalink
[egs] Raise error if storage_dir not specified in LibriMix recipes (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
mpariente authored Jun 29, 2022
1 parent 6a81394 commit e35295b
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions egs/librimix/ConvTasNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down
4 changes: 4 additions & 0 deletions egs/librimix/DCCRNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down
4 changes: 4 additions & 0 deletions egs/librimix/DCUNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down
4 changes: 4 additions & 0 deletions egs/librimix/DPRNNTasNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down
4 changes: 4 additions & 0 deletions egs/librimix/DPTNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down
4 changes: 4 additions & 0 deletions egs/librimix/SuDORMRFImprovedNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down
4 changes: 4 additions & 0 deletions egs/librimix/SuDORMRFNet/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ test_dir=data/wav${sr_string}k/$eval_mode/test

if [[ $stage -le 0 ]]; then
echo "Stage 0: Generating Librimix dataset"
if [ -z "$storage_dir" ]; then
echo "Need to fill in the storage_dir variable in run.sh to run stage 0. Exiting"
exit 1
fi
. local/generate_librimix.sh --storage_dir $storage_dir --n_src $n_src
fi

Expand Down

0 comments on commit e35295b

Please sign in to comment.