ProgramComputer commited on
Commit
8199fea
1 Parent(s): e918111

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +11 -7
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
- # datasets.SplitGenerator(
275
- # name="train",
276
- # gen_kwargs={
277
- # "paths":mapped_paths["dev"],
278
- # "meta_paths": metadata,
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