-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathtrain.sh
More file actions
28 lines (26 loc) · 720 Bytes
/
train.sh
File metadata and controls
28 lines (26 loc) · 720 Bytes
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
GPU=$1
dataset_audio=$2
dataset_audio_valid=$3
dataset_mel=$4
dataset_mel_valid=$5
model_name=$6
config=$7
use_scheduler=$8
mixprecision=${9:-'0'}
checkpoint_path=${10:-'""'}
restore_step=${11:-'0'}
if [ "$mixprecision" -eq "1" ]; then
echo "mix precision training"
fi
export MODE=train
CUDA_VISIBLE_DEVICES=$GPU python3 bin/launcher.py \
--audio_index_path $dataset_audio \
--mel_index_path $dataset_mel \
--audio_index_valid_path $dataset_audio_valid \
--mel_index_valid_path $dataset_mel_valid \
--model_name $model_name \
--config $config \
--use_scheduler $use_scheduler \
--mixprecision $mixprecision \
--checkpoint_path $checkpoint_path\
--restore_step $restore_step