Datasets:
Update IBDColEpi.py
Browse files- IBDColEpi.py +3 -3
IBDColEpi.py
CHANGED
|
@@ -89,7 +89,7 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
|
|
| 89 |
datasets.BuilderConfig(name="part" + str(x), version=VERSION, description="This include part " + str(x) + "/10 of the WSIs of the dataset.") \
|
| 90 |
for x in range(1, 11)
|
| 91 |
] + [
|
| 92 |
-
datasets.BuilderConfig(name="wsi-annotations", version=VERSION, description="This
|
| 93 |
]
|
| 94 |
|
| 95 |
DEFAULT_CONFIG_NAME = "part1" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
|
@@ -110,7 +110,7 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
|
|
| 110 |
elif self.config.name == "wsi-annotations":
|
| 111 |
features = datasets.Features(
|
| 112 |
{
|
| 113 |
-
"
|
| 114 |
# These are the features of your dataset like images, labels ...
|
| 115 |
}
|
| 116 |
)
|
|
@@ -168,7 +168,7 @@ class IBDColEpi(datasets.GeneratorBasedBuilder):
|
|
| 168 |
gen_kwargs={
|
| 169 |
"dataset_name": "wsi-annotations",
|
| 170 |
},
|
| 171 |
-
)
|
| 172 |
]
|
| 173 |
|
| 174 |
return generators
|
|
|
|
| 89 |
datasets.BuilderConfig(name="part" + str(x), version=VERSION, description="This include part " + str(x) + "/10 of the WSIs of the dataset.") \
|
| 90 |
for x in range(1, 11)
|
| 91 |
] + [
|
| 92 |
+
datasets.BuilderConfig(name="wsi-annotations", version=VERSION, description="This include all annotations stored as binary pyramidal, tiled TIFFs."),
|
| 93 |
]
|
| 94 |
|
| 95 |
DEFAULT_CONFIG_NAME = "part1" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
|
|
|
| 110 |
elif self.config.name == "wsi-annotations":
|
| 111 |
features = datasets.Features(
|
| 112 |
{
|
| 113 |
+
"annotation": datasets.Value("string"),
|
| 114 |
# These are the features of your dataset like images, labels ...
|
| 115 |
}
|
| 116 |
)
|
|
|
|
| 168 |
gen_kwargs={
|
| 169 |
"dataset_name": "wsi-annotations",
|
| 170 |
},
|
| 171 |
+
),
|
| 172 |
]
|
| 173 |
|
| 174 |
return generators
|