testing fix

pull/10/head
erogol 2020-08-04 14:29:05 +02:00
parent e386caa071
commit 0a34eb6f08
3 changed files with 9 additions and 8 deletions

View File

@ -28,8 +28,7 @@ from mozilla_voice_tts.vocoder.datasets.preprocess import (load_wav_data,
# init_distributed, reduce_tensor)
from mozilla_voice_tts.vocoder.layers.losses import (DiscriminatorLoss,
GeneratorLoss)
from mozilla_voice_tts.vocoder.utils.generic_utils import (check_config,
plot_results,
from mozilla_voice_tts.vocoder.utils.generic_utils import (plot_results,
setup_discriminator,
setup_generator)
from mozilla_voice_tts.vocoder.utils.io import save_best_model, save_checkpoint
@ -622,7 +621,7 @@ if __name__ == '__main__':
# setup output paths and read configs
c = load_config(args.config_path)
check_config(c)
# check_config(c)
_ = os.path.dirname(os.path.realpath(__file__))
OUT_PATH = args.continue_path

View File

@ -145,5 +145,7 @@ def setup_discriminator(c):
)
return model
# def check_config(c):
# pass
# c = None
# pass

View File

@ -1,12 +1,12 @@
TF_CPP_MIN_LOG_LEVEL=3
# tests
nosetests tests -x
nosetests tests -x &&\
# runtime tests
./tests/test_server_package.sh
./tests/test_tts_train.sh
./tests/test_vocoder_train.sh
./tests/test_server_package.sh && \
./tests/test_tts_train.sh && \
./tests/test_vocoder_train.sh && \
# linter check
cardboardlinter --refspec master