coerce into path for other sampler_types (it's required for sampling for similar utterances)

This commit is contained in:
mrq 2024-09-26 18:37:56 -05:00
parent f24547ad4e
commit ff7a1b4163

View File

@ -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)