Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reuben committed Aug 29, 2019
1 parent 3c5aeb5 commit 28644a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis/script
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ fi

if [[ "$TEST_SUITE" == "unittest" ]]; then
# Run tests on all pushes
pushd tts_namespace
python -m unittest
popd
fi
2 changes: 1 addition & 1 deletion tests/inputs/server_config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"tts_path":"tests/outputs/", // tts model root folder
"tts_path":"TTS/tests/outputs/", // tts model root folder
"tts_file":"checkpoint_10.pth.tar", // tts checkpoint file
"tts_config":"dummy_model_config.json", // tts config.json file
"tts_speakers": null, // json file listing speaker ids. null if no speaker embedding.
Expand Down
2 changes: 1 addition & 1 deletion utils/generic_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def set_init_dict(model_dict, checkpoint, c):

def setup_model(num_chars, num_speakers, c):
print(" > Using model: {}".format(c.model))
MyModel = importlib.import_module('models.' + c.model.lower())
MyModel = importlib.import_module('TTS.models.' + c.model.lower())
MyModel = getattr(MyModel, c.model)
if c.model.lower() in ["tacotron", "tacotrongst"]:
model = MyModel(
Expand Down

0 comments on commit 28644a7

Please sign in to comment.