alkzar90 commited on
Commit
2d4994c
1 Parent(s): 5cddd15

Fix tab format

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +2 -2
NIH-Chest-X-ray-dataset.py CHANGED
@@ -106,11 +106,11 @@ class XChest(datasets.GeneratorBasedBuilder):
106
  # Iterate trought image folder and check if they belong to
107
  # the trainset or testset
108
  for batch in data_files:
109
- for img in batch:
110
  if img in train_val_list:
111
  train_files.append(img)
112
  else:
113
- test_files.append(img)
114
 
115
  print(train_files)
116
  print(test_files)
 
106
  # Iterate trought image folder and check if they belong to
107
  # the trainset or testset
108
  for batch in data_files:
109
+ for img in dl_manager.download_and_extract(batch):
110
  if img in train_val_list:
111
  train_files.append(img)
112
  else:
113
+ test_files.append(img)
114
 
115
  print(train_files)
116
  print(test_files)