Commit
·
a1e0bfe
1
Parent(s):
caae15d
Update test.py
Browse files
test.py
CHANGED
@@ -295,6 +295,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
295 |
|
296 |
def _generate_examples(self, paths, meta_paths):
|
297 |
key = 0
|
|
|
298 |
for conf in paths:
|
299 |
dataset_id = "vox1" if conf == "audio1" else "vox2"
|
300 |
meta = pd.read_csv(
|
@@ -303,7 +304,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
303 |
index_col=0,
|
304 |
engine="python",
|
305 |
)
|
306 |
-
|
307 |
for path in paths[conf].values():
|
308 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
309 |
# def find_mount_point(path):
|
|
|
295 |
|
296 |
def _generate_examples(self, paths, meta_paths):
|
297 |
key = 0
|
298 |
+
paths = {k: (tuple(v.values()) if isinstance(v, dict) else (v,)) for k, v in paths.items()}
|
299 |
for conf in paths:
|
300 |
dataset_id = "vox1" if conf == "audio1" else "vox2"
|
301 |
meta = pd.read_csv(
|
|
|
304 |
index_col=0,
|
305 |
engine="python",
|
306 |
)
|
307 |
+
|
308 |
for path in paths[conf].values():
|
309 |
#raise Exception([x for x in Path(path).glob('**/*')])
|
310 |
# def find_mount_point(path):
|