Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
License:
Fix typo and indent rock-glacier-dataset.py
Browse files- rock-glacier-dataset.py +4 -4
rock-glacier-dataset.py
CHANGED
@@ -39,8 +39,8 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
39 |
description=_DESCRIPTION,
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
-
|
43 |
-
|
44 |
}
|
45 |
),
|
46 |
supervised_keys=("image", "labels"),
|
@@ -57,13 +57,13 @@ class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
|
57 |
name=datasets.Split.TRAIN,
|
58 |
gen_kwargs={
|
59 |
"files": dl_manager.iter_files([data_files["train"]]),
|
60 |
-
}
|
61 |
),
|
62 |
datasets.SplitGenerator(
|
63 |
name=datasets.Split.VALIDATION,
|
64 |
gen_kwargs={
|
65 |
"files": dl_manager.iter_files([data_files["validation"]]),
|
66 |
-
}
|
67 |
),
|
68 |
]
|
69 |
|
|
|
39 |
description=_DESCRIPTION,
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
+
"image": datasets.Image(),
|
43 |
+
"labels": datasets.features.ClassLabel(names=_NAMES),
|
44 |
}
|
45 |
),
|
46 |
supervised_keys=("image", "labels"),
|
|
|
57 |
name=datasets.Split.TRAIN,
|
58 |
gen_kwargs={
|
59 |
"files": dl_manager.iter_files([data_files["train"]]),
|
60 |
+
},
|
61 |
),
|
62 |
datasets.SplitGenerator(
|
63 |
name=datasets.Split.VALIDATION,
|
64 |
gen_kwargs={
|
65 |
"files": dl_manager.iter_files([data_files["validation"]]),
|
66 |
+
},
|
67 |
),
|
68 |
]
|
69 |
|