-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtrain_run.sh
38 lines (30 loc) · 1.75 KB
/
train_run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
DEVICE=0
CONFIG="egs/egs_bases/tts/fs2_orig.yaml"
binary_data_dir="/workspace/choddeok/hd0/dataset/binary256/ESD_VAD_rescale_polar_Neu_IQR_spk_cpu_Neu_allx"
run_infer() {
local model_name=$1
local task_class=$2
local hparams="binary_data_dir=$binary_data_dir,task_cls=$task_class"
# Train
CUDA_VISIBLE_DEVICES=$DEVICE python run.py --config $CONFIG --exp_name $model_name --reset --hparams="$hparams"
# Infer with different configurations
for config_suffix in "" _0.1 _0.5 _0.9; do
CUDA_VISIBLE_DEVICES=$DEVICE python run.py --config "egs/datasets/audio/esd${config_suffix}/fs_orig.yaml" --exp_name $model_name --reset --infer --hparams="$hparams"
done
for config_suffix in "" _0.1 _0.5 _0.9; do
CUDA_VISIBLE_DEVICES=$DEVICE python run.py --config "egs/datasets/audio/esd${config_suffix}_I/fs_orig.yaml" --exp_name $model_name --reset --infer --hparams="$hparams"
done
for config_suffix in "" _0.1 _0.5 _0.9; do
CUDA_VISIBLE_DEVICES=$DEVICE python run.py --config "egs/datasets/audio/esd${config_suffix}_III/fs_orig.yaml" --exp_name $model_name --reset --infer --hparams="$hparams"
done
for config_suffix in "" _0.1 _0.5 _0.9; do
CUDA_VISIBLE_DEVICES=$DEVICE python run.py --config "egs/datasets/audio/esd${config_suffix}_V/fs_orig.yaml" --exp_name $model_name --reset --infer --hparams="$hparams"
done
for config_suffix in "" _0.1 _0.5 _0.9; do
CUDA_VISIBLE_DEVICES=$DEVICE python run.py --config "egs/datasets/audio/esd${config_suffix}_VII/fs_orig.yaml" --exp_name $model_name --reset --infer --hparams="$hparams"
done
}
#########################
# Run for the model #
#########################
run_infer "240429_EmoSphere" "tasks.tts.EmoSphere.FastSpeech2OrigTask"