Fix indent
Browse files
LyNoS.py
CHANGED
@@ -27,31 +27,19 @@ _CITATION = """\
|
|
27 |
|
28 |
"""
|
29 |
|
30 |
-
#_URLS = [
|
31 |
-
# {
|
32 |
-
# "ct": f"data/Pat{i}/Pat{i}_data.nii.gz",
|
33 |
-
# "azygos": f"data/Pat{i}/Pat{i}_labels_Azygos.nii.gz",
|
34 |
-
# "brachiocephalicveins": f"data/Pat{i}/Pat{i}_labels_BrachiocephalicVeins.nii.gz",
|
35 |
-
# "esophagus": f"data/Pat{i}/Pat{i}_labels_Esophagus.nii.gz",
|
36 |
-
# "lymphnodes": f"data/Pat{i}/Pat{i}_labels_LymphNodes.nii.gz",
|
37 |
-
# "subclaviancarotidarteries": f"data/Pat{i}/Pat{i}_labels_SubCarArt.nii.gz",
|
38 |
-
# }
|
39 |
-
# for i in range(1, 15)
|
40 |
-
#]
|
41 |
_URLS = {"zenodo": "https://zenodo.org/records/10102261/files/LyNoS.zip?download=1"}
|
42 |
|
|
|
43 |
class LyNoS(datasets.GeneratorBasedBuilder):
|
44 |
"""A segmentation benchmark dataset for enlarged lymph nodes in patients with primary lung cancer."""
|
45 |
|
46 |
VERSION = datasets.Version("1.0.0")
|
47 |
DEFAULT_CONFIG_NAME = "zenodo"
|
48 |
BUILDER_CONFIGS = [
|
49 |
-
|
50 |
-
|
51 |
-
datasets.BuilderConfig(name="zenodo", version=VERSION, description="This includes all 15 CTs stored as a single zip on Zenodo"),
|
52 |
-
]
|
53 |
|
54 |
-
|
55 |
|
56 |
def __init__(self, **kwargs):
|
57 |
super().__init__(**kwargs)
|
|
|
27 |
|
28 |
"""
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
_URLS = {"zenodo": "https://zenodo.org/records/10102261/files/LyNoS.zip?download=1"}
|
31 |
|
32 |
+
|
33 |
class LyNoS(datasets.GeneratorBasedBuilder):
|
34 |
"""A segmentation benchmark dataset for enlarged lymph nodes in patients with primary lung cancer."""
|
35 |
|
36 |
VERSION = datasets.Version("1.0.0")
|
37 |
DEFAULT_CONFIG_NAME = "zenodo"
|
38 |
BUILDER_CONFIGS = [
|
39 |
+
datasets.BuilderConfig(name="zenodo", version=VERSION, description="This includes all 15 CTs stored as a single zip on Zenodo"),
|
40 |
+
]
|
|
|
|
|
41 |
|
42 |
+
DEFAULT_CONFIG_NAME = "zenodo" # It's not mandatory to have a default configuration. Just use one if it make sense.
|
43 |
|
44 |
def __init__(self, **kwargs):
|
45 |
super().__init__(**kwargs)
|