Skip to content

Commit

Permalink
solving ci issue
Browse files Browse the repository at this point in the history
  • Loading branch information
soumimaiti committed Jun 20, 2022
1 parent 806b462 commit ff945a2
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion egs2/cmu_arctic/tts1/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


# Select the backend used by run.sh from "local", "stdout", "sge", "slurm", or "ssh"
cmd_backend='local'
cmd_backend='slurm'

# Local machine, without any Job scheduling system
if [ "${cmd_backend}" = local ]; then
Expand Down
9 changes: 6 additions & 3 deletions egs2/cmu_arctic/tts1/conf/slurm.conf
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Default configuration
# conf/slurm.conf

# Default configuration
command sbatch --export=PATH
option name=* --job-name $0
default time=48:00:00
option time=* --time $0
option mem=* --mem-per-cpu $0
option mem=0
option num_threads=* --cpus-per-task $0
option num_threads=1 --cpus-per-task 1
option num_nodes=* --nodes $0
default gpu=0
option gpu=0 -p cpu
option gpu=* -p gpu --gres=gpu:$0 -c $0 # Recommend allocating more CPU than, or equal to the number of GPU
option gpu=0 -p RM-shared
option gpu=* -p GPU-shared --gres=gpu:$0 -c $0 # Recommend allocating more CPU than, or equal to the number of GPU
# note: the --max-jobs-run option is supported as a special case
# by slurm.pl and you don't have to handle it in the config file.
4 changes: 2 additions & 2 deletions egs2/cmu_arctic/tts1/local/data_download_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ if [ ! -e "${db_root}/cmu_us_all_arctic/txt.done.data" ]; then
for spk in slt clb bdl rms jmk awb ksp
do
echo "Combine Speaker: "$spk
if [ $(find ${db_root}/cmu_us_all_arctic/wav/ -maxdepth 1 -name ${spk}* | wc -l) -lt 1132 ]; then
if [ $(ls ${db_root}/cmu_us_all_arctic/wav/${spk}* | wc -l) -lt 1132 ]; then
find ${db_root}/cmu_us_${spk}_arctic/wav -name "arctic*.wav" -follow | sort | while read -r filename;do
cp ${filename} ${db_root}/cmu_us_all_arctic/wav/${spk}_$(basename $filename)
done
fi

if [ $(find ${db_root}/cmu_us_all_arctic/lab/ -maxdepth 1 -name ${spk}* | wc -l) -lt 1132 ]; then
if [ $(ls ${db_root}/cmu_us_all_arctic/lab/${spk}* | wc -l) -lt 1132 ]; then
find ${db_root}/cmu_us_${spk}_arctic/lab -name "arctic*.lab" -follow | sort | while read -r filename;do
cp ${filename} ${db_root}/cmu_us_all_arctic/lab/${spk}_$(basename $filename)
done
Expand Down
22 changes: 11 additions & 11 deletions egs2/cmu_arctic/tts1/local/get_utt_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@

import glob

# This file creates train-dev-eval utterance list for all arctic voices.
# This file creates train-dev-eval utterance list for all arctic voices.
# dev split includes arctic_b0340 - arctic_b439, eval split includes arctic_b0440 - larger
utt_train_list="data/all/utt_train_list.txt"
utt_dev_list="data/all/utt_dev_list.txt"
utt_eval_list="data/all/utt_eval_list.txt"
utt_train_list = "data/all/utt_train_list.txt"
utt_dev_list = "data/all/utt_dev_list.txt"
utt_eval_list = "data/all/utt_eval_list.txt"

ftrain=open(utt_train_list, "w")
fdev=open(utt_dev_list, "w")
feval=open(utt_eval_list, "w")
ftrain = open(utt_train_list, "w")
fdev = open(utt_dev_list, "w")
feval = open(utt_eval_list, "w")
for spk in ["slt", "clb", "bdl", "rms", "jmk", "awb", "ksp"]:

for w in glob.glob("downloads/cmu_us_all_arctic/wav/{}_*.wav".format(spk, spk)):

# check if in train list
file_suffix = os.path.basename(w).split("_")[2]

if file_suffix.startswith("a"):
ftrain.write("{}\n".format(os.path.basename(w)[:-4]))
else:
#filename starts with b, check the number
# filename starts with b, check the number
filenum = int(file_suffix[1:-4])
if filenum <= 339:
ftrain.write("{}\n".format(os.path.basename(w)[:-4]))
Expand All @@ -33,4 +33,4 @@

ftrain.close()
fdev.close()
feval.close()
feval.close()
2 changes: 1 addition & 1 deletion egs2/cmu_arctic/tts1/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ n_fft=1024
n_shift=256
win_length=null

spk=awb
spk=all

opts="--audio_format wav --local_data_opts ${spk} "

Expand Down
2 changes: 1 addition & 1 deletion egs2/cmu_arctic/tts1/run_pre_fine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e
set -u
set -o pipefail

set -evx
fs=16000
n_fft=1024
n_shift=256
Expand Down

0 comments on commit ff945a2

Please sign in to comment.