Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Fix typo NIH
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -108,9 +108,9 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
108 |
for batch in data_files:
|
109 |
for img in batch:
|
110 |
if img in train_val_list:
|
111 |
-
|
112 |
else:
|
113 |
-
|
114 |
|
115 |
print(train_files)
|
116 |
print(test_files)
|
|
|
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)
|