2020-07-16 13:05:36 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
|
|
echo "$BASEDIR"
|
|
|
|
# run training
|
2020-08-04 08:51:19 +00:00
|
|
|
CUDA_VISIBLE_DEVICES="" python mozilla_voice_tts/bin/train_tts.py --config_path $BASEDIR/inputs/test_train_config.json
|
2020-07-16 13:05:36 +00:00
|
|
|
# find the training folder
|
|
|
|
LATEST_FOLDER=$(ls $BASEDIR/train_outputs/| sort | tail -1)
|
|
|
|
echo $LATEST_FOLDER
|
|
|
|
# continue the previous training
|
2020-08-04 08:51:19 +00:00
|
|
|
CUDA_VISIBLE_DEVICES="" python mozilla_voice_tts/bin/train_tts.py --continue_path $BASEDIR/train_outputs/$LATEST_FOLDER
|
2020-07-16 13:05:36 +00:00
|
|
|
# remove all the outputs
|
|
|
|
rm -rf $BASEDIR/train_outputs/
|