mirror of https://github.com/coqui-ai/TTS.git
Merge pull request #9 from eginhard/disable-wavegrad-test
test(vocoder): disable wavegrad training test in CI
This commit is contained in:
commit
ec2346099d
|
@ -1,10 +1,19 @@
|
|||
import glob
|
||||
import os
|
||||
import shutil
|
||||
import unittest
|
||||
|
||||
from tests import get_device_id, get_tests_output_path, run_cli
|
||||
from TTS.vocoder.configs import WavegradConfig
|
||||
|
||||
|
||||
class WavegradTrainingTest(unittest.TestCase):
|
||||
# TODO: Reactivate after improving CI run times
|
||||
# This test currently takes ~2h on CI (15min/step vs 8sec/step locally)
|
||||
if os.getenv("GITHUB_ACTIONS") == "true":
|
||||
__test__ = False
|
||||
|
||||
def test_train(self): # pylint: disable=no-self-use
|
||||
config_path = os.path.join(get_tests_output_path(), "test_vocoder_config.json")
|
||||
output_path = os.path.join(get_tests_output_path(), "train_outputs")
|
||||
|
||||
|
@ -29,7 +38,9 @@ config.audio.trim_db = 60
|
|||
config.save_json(config_path)
|
||||
|
||||
# train the model for one epoch
|
||||
command_train = f"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_vocoder.py --config_path {config_path} "
|
||||
command_train = (
|
||||
f"CUDA_VISIBLE_DEVICES='{get_device_id()}' python TTS/bin/train_vocoder.py --config_path {config_path} "
|
||||
)
|
||||
run_cli(command_train)
|
||||
|
||||
# Find latest folder
|
||||
|
|
Loading…
Reference in New Issue