Chris Oswald
commited on
Commit
·
58a2488
1
Parent(s):
508d191
debugging
Browse files
SPIDER.py
CHANGED
@@ -163,11 +163,12 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
163 |
This method specifies the datasets.DatasetInfo object which contains
|
164 |
informations and typings for the dataset.
|
165 |
"""
|
|
|
166 |
features = datasets.Features({
|
167 |
"patient_id": datasets.Value("string"),
|
168 |
"scan_type": datasets.Value("string"),
|
169 |
# "raw_image": datasets.Image(),
|
170 |
-
"numeric_array": datasets.Array3D(shape=
|
171 |
"metadata": {
|
172 |
"num_vertebrae": datasets.Value(dtype="string"),
|
173 |
"num_discs": datasets.Value(dtype="string"),
|
|
|
163 |
This method specifies the datasets.DatasetInfo object which contains
|
164 |
informations and typings for the dataset.
|
165 |
"""
|
166 |
+
image_size = self.config.resize_shape
|
167 |
features = datasets.Features({
|
168 |
"patient_id": datasets.Value("string"),
|
169 |
"scan_type": datasets.Value("string"),
|
170 |
# "raw_image": datasets.Image(),
|
171 |
+
"numeric_array": datasets.Array3D(shape=image_size, dtype='int16'),
|
172 |
"metadata": {
|
173 |
"num_vertebrae": datasets.Value(dtype="string"),
|
174 |
"num_discs": datasets.Value(dtype="string"),
|