calicxy commited on
Commit
58f81a1
·
1 Parent(s): bebad2a

try iter-archive

Browse files
Files changed (1) hide show
  1. imda-dataset.py +1 -1
imda-dataset.py CHANGED
@@ -187,7 +187,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
187
  # script_list = glob.glob(metadata_path)
188
  d = {}
189
 
190
- downloaded_files = dl_manager.extract(os.path.join(path_to_data, "DATA", mic, "SCRIPT"))
191
  print(f"{downloaded_files}")
192
  for script in downloaded_files:
193
  d["hi"] = script
 
187
  # script_list = glob.glob(metadata_path)
188
  d = {}
189
 
190
+ downloaded_files = dl_manager.iter_archive(os.path.join(path_to_data, "DATA", mic, "SCRIPT"))
191
  print(f"{downloaded_files}")
192
  for script in downloaded_files:
193
  d["hi"] = script