mirror of https://github.com/coqui-ai/TTS.git
testing fix
This commit is contained in:
parent
e386caa071
commit
0a34eb6f08
|
@ -28,8 +28,7 @@ from mozilla_voice_tts.vocoder.datasets.preprocess import (load_wav_data,
|
||||||
# init_distributed, reduce_tensor)
|
# init_distributed, reduce_tensor)
|
||||||
from mozilla_voice_tts.vocoder.layers.losses import (DiscriminatorLoss,
|
from mozilla_voice_tts.vocoder.layers.losses import (DiscriminatorLoss,
|
||||||
GeneratorLoss)
|
GeneratorLoss)
|
||||||
from mozilla_voice_tts.vocoder.utils.generic_utils import (check_config,
|
from mozilla_voice_tts.vocoder.utils.generic_utils import (plot_results,
|
||||||
plot_results,
|
|
||||||
setup_discriminator,
|
setup_discriminator,
|
||||||
setup_generator)
|
setup_generator)
|
||||||
from mozilla_voice_tts.vocoder.utils.io import save_best_model, save_checkpoint
|
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
|
# setup output paths and read configs
|
||||||
c = load_config(args.config_path)
|
c = load_config(args.config_path)
|
||||||
check_config(c)
|
# check_config(c)
|
||||||
_ = os.path.dirname(os.path.realpath(__file__))
|
_ = os.path.dirname(os.path.realpath(__file__))
|
||||||
|
|
||||||
OUT_PATH = args.continue_path
|
OUT_PATH = args.continue_path
|
||||||
|
|
|
@ -145,5 +145,7 @@ def setup_discriminator(c):
|
||||||
)
|
)
|
||||||
return model
|
return model
|
||||||
|
|
||||||
|
|
||||||
# def check_config(c):
|
# def check_config(c):
|
||||||
|
# c = None
|
||||||
# pass
|
# pass
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
TF_CPP_MIN_LOG_LEVEL=3
|
TF_CPP_MIN_LOG_LEVEL=3
|
||||||
|
|
||||||
# tests
|
# tests
|
||||||
nosetests tests -x
|
nosetests tests -x &&\
|
||||||
|
|
||||||
# runtime tests
|
# runtime tests
|
||||||
./tests/test_server_package.sh
|
./tests/test_server_package.sh && \
|
||||||
./tests/test_tts_train.sh
|
./tests/test_tts_train.sh && \
|
||||||
./tests/test_vocoder_train.sh
|
./tests/test_vocoder_train.sh && \
|
||||||
|
|
||||||
# linter check
|
# linter check
|
||||||
cardboardlinter --refspec master
|
cardboardlinter --refspec master
|
Loading…
Reference in New Issue