Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
100K<n<1M
ArXiv:
License:
Fix typo: file_namae -> file_name
Browse files
NIH-Chest-X-ray-dataset.py
CHANGED
@@ -137,7 +137,7 @@ class XChest(datasets.GeneratorBasedBuilder):
|
|
137 |
def _generate_examples(self, files):
|
138 |
for i, path in enumerate(files):
|
139 |
file_name = os.path.basename(path)
|
140 |
-
if
|
141 |
yield i, {
|
142 |
"image_file_path": path,
|
143 |
"image": path,
|
|
|
137 |
def _generate_examples(self, files):
|
138 |
for i, path in enumerate(files):
|
139 |
file_name = os.path.basename(path)
|
140 |
+
if file_name.endswith(".png"):
|
141 |
yield i, {
|
142 |
"image_file_path": path,
|
143 |
"image": path,
|