From f9d91a55f2008f9c687ec058e32ed86c5eddb1fa Mon Sep 17 00:00:00 2001 From: Taras Sereda Date: Thu, 12 May 2022 14:10:35 +0300 Subject: [PATCH] Improve data_path resolvement (#1567) --- tests/data_tests/test_loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/data_tests/test_loader.py b/tests/data_tests/test_loader.py index 0562fbf718..6790fd5470 100644 --- a/tests/data_tests/test_loader.py +++ b/tests/data_tests/test_loader.py @@ -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 @@ -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(