Datasets:
Update IBDColEpi.py
Browse files- IBDColEpi.py +9 -20
IBDColEpi.py
CHANGED
|
@@ -70,6 +70,8 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
|
|
| 70 |
BUILDER_CONFIGS = [
|
| 71 |
datasets.BuilderConfig(name="part_0" + str(x), version=datasets.Version("1.0.0"), description="This include part " + str(x) + "/10 of the WSIs in the dataset.") \
|
| 72 |
for x in range(1, 10)
|
|
|
|
|
|
|
| 73 |
] + [
|
| 74 |
datasets.BuilderConfig(name="wsi-annotations", version=datasets.Version("1.0.0"), description="This include all annotations stored as binary pyramidal, tiled TIFFs."),
|
| 75 |
]
|
|
@@ -133,26 +135,13 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
|
|
| 133 |
|
| 134 |
print("data is downloaded to:", self.DATA_DIR)
|
| 135 |
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
) \
|
| 144 |
-
for x in range(1, 10)
|
| 145 |
-
] + [
|
| 146 |
-
datasets.SplitGenerator(
|
| 147 |
-
name="ANNOTATIONS",
|
| 148 |
-
# These kwargs will be passed to _generate_examples
|
| 149 |
-
gen_kwargs={
|
| 150 |
-
"dataset_name": "wsi-annotations",
|
| 151 |
-
},
|
| 152 |
-
),
|
| 153 |
-
]
|
| 154 |
-
|
| 155 |
-
return generators
|
| 156 |
|
| 157 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 158 |
def _generate_examples(self, dataset_name):
|
|
|
|
| 70 |
BUILDER_CONFIGS = [
|
| 71 |
datasets.BuilderConfig(name="part_0" + str(x), version=datasets.Version("1.0.0"), description="This include part " + str(x) + "/10 of the WSIs in the dataset.") \
|
| 72 |
for x in range(1, 10)
|
| 73 |
+
] + [
|
| 74 |
+
datasets.BuilderConfig(name="part_10", version=datasets.Version("1.0.0"), description="This include part 10/10 of the WSIs in the dataset.") \
|
| 75 |
] + [
|
| 76 |
datasets.BuilderConfig(name="wsi-annotations", version=datasets.Version("1.0.0"), description="This include all annotations stored as binary pyramidal, tiled TIFFs."),
|
| 77 |
]
|
|
|
|
| 135 |
|
| 136 |
print("data is downloaded to:", self.DATA_DIR)
|
| 137 |
|
| 138 |
+
return datasets.SplitGenerator(
|
| 139 |
+
name=self.config.name,
|
| 140 |
+
# These kwargs will be passed to _generate_examples
|
| 141 |
+
gen_kwargs={
|
| 142 |
+
"dataset_name": self.config.name,
|
| 143 |
+
},
|
| 144 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
| 147 |
def _generate_examples(self, dataset_name):
|