Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Iterate for urls in each zip
Browse files
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 |
-
|
|
|
|
|
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:
|