Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
License:
Fix tab-indentation
Browse files- rock-glacier-dataset.py +17 -17
rock-glacier-dataset.py
CHANGED
@@ -66,24 +66,24 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
66 |
|
67 |
def _info(self):
|
68 |
if self.config.name == "image-classification":
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
return datasets.DatasetInfo(
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
|
88 |
|
89 |
def _split_generators(self, dl_manager):
|
|
|
66 |
|
67 |
def _info(self):
|
68 |
if self.config.name == "image-classification":
|
69 |
+
features = dataset.Features({
|
70 |
+
"image": datasets.Image(),
|
71 |
+
"labels": datasets.features.ClassLabel(names=_NAMES),
|
72 |
+
})
|
73 |
+
keys = ("image", "labels")
|
74 |
+
task = [ImageClassification(image_column="image", label_column="labels")]
|
75 |
+
|
76 |
+
if self.config.name == "image-segmentation":
|
77 |
+
pass
|
78 |
+
|
79 |
return datasets.DatasetInfo(
|
80 |
+
description=_DESCRIPTION,
|
81 |
+
features=features,
|
82 |
+
supervised_keys=keys,
|
83 |
+
homepage=_HOMEPAGE,
|
84 |
+
citation=_CITATION,
|
85 |
+
task_templates=task,
|
86 |
+
)
|
87 |
|
88 |
|
89 |
def _split_generators(self, dl_manager):
|