Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
License:
Fix tab indent
Browse files- rock-glacier-dataset.py +3 -3
rock-glacier-dataset.py
CHANGED
@@ -70,9 +70,9 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
70 |
def _generate_examples(self, files):
|
71 |
for i, path in enumerate(files):
|
72 |
file_name = os.path.basename(path)
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
"labels": os.path.basename(os.path.dirname(path)).lower(),
|
77 |
}
|
78 |
|
|
|
70 |
def _generate_examples(self, files):
|
71 |
for i, path in enumerate(files):
|
72 |
file_name = os.path.basename(path)
|
73 |
+
if file_name.endswith(".png"):
|
74 |
+
yield i, {
|
75 |
+
"image": path,
|
76 |
"labels": os.path.basename(os.path.dirname(path)).lower(),
|
77 |
}
|
78 |
|