Chris Oswald
commited on
Commit
•
dec2fcc
1
Parent(s):
65c720b
debugging
Browse files
SPIDER.py
CHANGED
@@ -93,17 +93,8 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
93 |
|
94 |
VERSION = datasets.Version("1.1.0")
|
95 |
|
96 |
-
# This is an example of a dataset with multiple configurations.
|
97 |
-
# If you don't want/need to define several sub-sets in your dataset,
|
98 |
-
# just remove the BUILDER_CONFIG_CLASS and the BUILDER_CONFIGS attributes.
|
99 |
-
|
100 |
-
# If you need to make complex sub-parts in the datasets with configurable options
|
101 |
-
# You can create your own builder configuration class to store attribute, inheriting from datasets.BuilderConfig
|
102 |
BUILDER_CONFIG_CLASS = CustomBuilderConfig
|
103 |
|
104 |
-
# You will be able to load one or the other configurations in the following list with
|
105 |
-
# data = datasets.load_dataset('my_dataset', 'first_domain')
|
106 |
-
# data = datasets.load_dataset('my_dataset', 'second_domain')
|
107 |
BUILDER_CONFIGS = [
|
108 |
CustomBuilderConfig(
|
109 |
name="all_scan_types",
|
@@ -142,7 +133,7 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
142 |
"patient_id": datasets.Value("string"),
|
143 |
"scan_type": datasets.Value("string"),
|
144 |
# "raw_image": datasets.Image(),
|
145 |
-
"numeric_array": datasets.Array3D(
|
146 |
"metadata": {
|
147 |
"num_vertebrae": datasets.Value(dtype="string"),
|
148 |
"num_discs": datasets.Value(dtype="string"),
|
|
|
93 |
|
94 |
VERSION = datasets.Version("1.1.0")
|
95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
96 |
BUILDER_CONFIG_CLASS = CustomBuilderConfig
|
97 |
|
|
|
|
|
|
|
98 |
BUILDER_CONFIGS = [
|
99 |
CustomBuilderConfig(
|
100 |
name="all_scan_types",
|
|
|
133 |
"patient_id": datasets.Value("string"),
|
134 |
"scan_type": datasets.Value("string"),
|
135 |
# "raw_image": datasets.Image(),
|
136 |
+
"numeric_array": datasets.Array3D(dtype='int16'),
|
137 |
"metadata": {
|
138 |
"num_vertebrae": datasets.Value(dtype="string"),
|
139 |
"num_discs": datasets.Value(dtype="string"),
|