Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
License:
Fix config constructor
Browse files- rock-glacier-dataset.py +9 -10
rock-glacier-dataset.py
CHANGED
|
@@ -46,16 +46,15 @@ _NAMES = ["glaciar", "cordillera"]
|
|
| 46 |
|
| 47 |
|
| 48 |
class RockGlacierConfig(datasets.BuilderConfig):
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
| 60 |
"""Rock Glacier images dataset."""
|
| 61 |
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
class RockGlacierConfig(datasets.BuilderConfig):
|
| 49 |
+
def __init__(self, name, **kwargs):
|
| 50 |
+
super(RockGlacierConfig, self).__init__(
|
| 51 |
+
version=datasets.Version("1.0.0"),
|
| 52 |
+
name=name,
|
| 53 |
+
description="Rock Glacier Dataset",
|
| 54 |
+
**kwargs,
|
| 55 |
+
)
|
| 56 |
+
|
| 57 |
+
|
|
|
|
| 58 |
class RockGlacierDataset(datasets.GeneratorBasedBuilder):
|
| 59 |
"""Rock Glacier images dataset."""
|
| 60 |
|