Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
License:
format path string
Browse files- rock-glacier-dataset.py +1 -1
rock-glacier-dataset.py
CHANGED
@@ -154,7 +154,7 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
154 |
yield i, {
|
155 |
"image": path,
|
156 |
"labels": os.path.basename(os.path.dirname(path)).lower(),
|
157 |
-
"path": path,
|
158 |
}
|
159 |
|
160 |
if self.config.name == "image-segmentation":
|
|
|
154 |
yield i, {
|
155 |
"image": path,
|
156 |
"labels": os.path.basename(os.path.dirname(path)).lower(),
|
157 |
+
"path": "/".join(path.split("/")[-3:]),
|
158 |
}
|
159 |
|
160 |
if self.config.name == "image-segmentation":
|