From 040d998922fc2ce6b6089bff1142ddf87501cd0e Mon Sep 17 00:00:00 2001 From: James Betker Date: Thu, 2 Dec 2021 22:53:48 -0700 Subject: [PATCH] maasd --- codes/data/audio/nv_tacotron_dataset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codes/data/audio/nv_tacotron_dataset.py b/codes/data/audio/nv_tacotron_dataset.py index 6562e7a2..d00441b7 100644 --- a/codes/data/audio/nv_tacotron_dataset.py +++ b/codes/data/audio/nv_tacotron_dataset.py @@ -18,7 +18,8 @@ from utils.util import opt_get def load_tsv(filename): with open(filename, encoding='utf-8') as f: components = [line.strip().split('\t') for line in f] - filepaths_and_text = [[component[1], component[0]] for component in components] + base = os.path.dirname(filename) + filepaths_and_text = [[os.path.join(base, f'clips/{component[1]}'), component[0]] for component in components] return filepaths_and_text