Skip to content

Commit

Permalink
Improve data_path resolvement (#1567)
Browse files Browse the repository at this point in the history
  • Loading branch information
taras-sereda authored May 12, 2022
1 parent 2fc38f6 commit f9d91a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/data_tests/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import torch
from torch.utils.data import DataLoader

from tests import get_tests_output_path
from tests import get_tests_data_path, get_tests_output_path
from TTS.tts.configs.shared_configs import BaseDatasetConfig, BaseTTSConfig
from TTS.tts.datasets import TTSDataset, load_tts_samples
from TTS.tts.utils.text.tokenizer import TTSTokenizer
Expand All @@ -20,7 +20,7 @@
# create a dummy config for testing data loaders.
c = BaseTTSConfig(text_cleaner="english_cleaners", num_loader_workers=0, batch_size=2, use_noise_augment=False)
c.r = 5
c.data_path = "tests/data/ljspeech/"
c.data_path = os.path.join(get_tests_data_path(), "ljspeech/")
ok_ljspeech = os.path.exists(c.data_path)

dataset_config = BaseDatasetConfig(
Expand Down

0 comments on commit f9d91a5

Please sign in to comment.