Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Fix tab format
Browse files
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 |
-
|
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)
|