ProgramComputer commited on
Commit
c5ccd26
1 Parent(s): f180172

Update test.py

Browse files
Files changed (1) hide show
  1. test.py +4 -2
test.py CHANGED
@@ -275,7 +275,7 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
275
 
276
  #mapped_paths["test"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["test"].items()}
277
  #mapped_paths["dev"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["dev"].items()}
278
-
279
  return [
280
  datasets.SplitGenerator(
281
  name="train",
@@ -295,7 +295,9 @@ class VoxCeleb(datasets.GeneratorBasedBuilder):
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(
 
275
 
276
  #mapped_paths["test"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["test"].items()}
277
  #mapped_paths["dev"] = {k:tuple(dl_manager.iter_files(e) for e in v) for k, v in mapped_paths["dev"].items()}
278
+ mapped_paths = {k: (tuple(file for file in dl_manager.iter_files(value) for value in v.values()) if isinstance(v, dict) else (v,)) for k, v in mapped_paths.items()}
279
  return [
280
  datasets.SplitGenerator(
281
  name="train",
 
295
 
296
  def _generate_examples(self, paths, meta_paths):
297
  key = 0
298
+ result_tuple = tuple(square(value) )
299
+
300
+
301
  for conf in paths:
302
  dataset_id = "vox1" if conf == "audio1" else "vox2"
303
  meta = pd.read_csv(