ProgramComputer
commited on
Commit
•
8199fea
1
Parent(s):
e918111
Update test.py
Browse files
test.py
CHANGED
@@ -270,14 +270,16 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
270 |
)
|
271 |
)
|
272 |
mapped_paths["test"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["test"].items()}
|
|
|
|
|
273 |
return [
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
datasets.SplitGenerator(
|
282 |
name="test",
|
283 |
gen_kwargs={
|
@@ -329,5 +331,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
|
|
329 |
info["speaker_nationality"] = speaker_info["Nationality"]
|
330 |
if conf.startswith("audio"):
|
331 |
info["audio"] = info["file"]
|
|
|
|
|
332 |
yield key, info
|
333 |
key += 1
|
|
|
270 |
)
|
271 |
)
|
272 |
mapped_paths["test"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["test"].items()}
|
273 |
+
mapped_paths["dev"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["dev"].items()}
|
274 |
+
|
275 |
return [
|
276 |
+
datasets.SplitGenerator(
|
277 |
+
name="train",
|
278 |
+
gen_kwargs={
|
279 |
+
"paths":mapped_paths["dev"],
|
280 |
+
"meta_paths": metadata,
|
281 |
+
},
|
282 |
+
),
|
283 |
datasets.SplitGenerator(
|
284 |
name="test",
|
285 |
gen_kwargs={
|
|
|
331 |
info["speaker_nationality"] = speaker_info["Nationality"]
|
332 |
if conf.startswith("audio"):
|
333 |
info["audio"] = info["file"]
|
334 |
+
if conf.startswith("video"):
|
335 |
+
info["video"] = info["file"]
|
336 |
yield key, info
|
337 |
key += 1
|