TTS/tests/test_glow-tts_train.sh

14 lines
497 B
Bash
Raw Normal View History

2020-11-09 12:30:42 +00:00
#!/usr/bin/env bash
2020-11-12 15:33:29 +00:00
set -xe
2020-11-09 12:30:42 +00:00
BASEDIR=$(dirname "$0")
echo "$BASEDIR"
# run training
CUDA_VISIBLE_DEVICES="" python TTS/bin/train_glow_tts.py --config_path $BASEDIR/inputs/test_glow_tts.json
# find the training folder
LATEST_FOLDER=$(ls $BASEDIR/train_outputs/| sort | tail -1)
echo $LATEST_FOLDER
# continue the previous training
CUDA_VISIBLE_DEVICES="" python TTS/bin/train_glow_tts.py --continue_path $BASEDIR/train_outputs/$LATEST_FOLDER
# remove all the outputs
rm -rf $BASEDIR/train_outputs/