karolyartur commited on
Commit
daae59b
1 Parent(s): 9d8cb08

Remove .tar fileter for local files

Browse files
Files changed (1) hide show
  1. SMVB.py +1 -2
SMVB.py CHANGED
@@ -115,8 +115,7 @@ class SMVBDataset(datasets.GeneratorBasedBuilder):
115
 
116
  def _split_generators(self, dl_manager):
117
  local_data_paths = dl_manager.download(self.config._data_urls)
118
- archives = itertools.chain.from_iterable([pathlib.Path(path).rglob('*.tar.gz') for path in local_data_paths])
119
- local_data_gen = itertools.chain.from_iterable([dl_manager.iter_archive(path) for path in archives])
120
 
121
  return [
122
  datasets.SplitGenerator(
 
115
 
116
  def _split_generators(self, dl_manager):
117
  local_data_paths = dl_manager.download(self.config._data_urls)
118
+ local_data_gen = itertools.chain.from_iterable([dl_manager.iter_archive(path) for path in local_data_paths])
 
119
 
120
  return [
121
  datasets.SplitGenerator(