alkzar90 commited on
Commit
7376c1e
1 Parent(s): 814dcde

Iterate for urls in each zip

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +4 -1
NIH-Chest-X-ray-dataset.py CHANGED
@@ -108,9 +108,12 @@ class XChest(datasets.GeneratorBasedBuilder):
108
 
109
  # Iterate trought image folder and check if they belong to
110
  # the trainset or testset
 
111
  for batch in data_files:
112
  logger.info(f"Batch for data_files: {batch}")
113
- for img in dl_manager.download_and_extract(batch):
 
 
114
  if img in train_val_list:
115
  train_files.append(img)
116
  else:
 
108
 
109
  # Iterate trought image folder and check if they belong to
110
  # the trainset or testset
111
+
112
  for batch in data_files:
113
  logger.info(f"Batch for data_files: {batch}")
114
+ path_files = dl_manager.iter_files(batch)
115
+ for img in path_files:
116
+ print(img)
117
  if img in train_val_list:
118
  train_files.append(img)
119
  else: