From ff7a1b41635b7d854741e56b253cc4bb8fefc5a6 Mon Sep 17 00:00:00 2001 From: mrq Date: Thu, 26 Sep 2024 18:37:56 -0500 Subject: [PATCH] coerce into path for other sampler_types (it's required for sampling for similar utterances) --- vall_e/data.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vall_e/data.py b/vall_e/data.py index b53ede5..209e0de 100755 --- a/vall_e/data.py +++ b/vall_e/data.py @@ -995,6 +995,9 @@ class Dataset(_Dataset): spkr_group = self.get_speaker_group(path) #spkr_group_id = self.spkr_group_symmap[spkr_group] + if not isinstance( path, Path ): + path = Path( path ) + if cfg.dataset.use_hdf5: key = _get_hdf5_path(path)