Chris Oswald
commited on
Commit
·
0281887
1
Parent(s):
6bba779
temporary comment out of numeric array
Browse files
SPIDER.py
CHANGED
@@ -139,7 +139,7 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
139 |
"patient_id": datasets.Value("string"),
|
140 |
"scan_type": datasets.Value("string"),
|
141 |
# "raw_image": datasets.Image(),
|
142 |
-
"numeric_array": datasets.Sequence(datasets.Value("int16")),
|
143 |
"metadata": {
|
144 |
"num_vertebrae": datasets.Value(dtype="string"),
|
145 |
"num_discs": datasets.Value(dtype="string"),
|
@@ -501,8 +501,8 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
501 |
return_dict = {'patient_id':patient_id, 'scan_type':scan_type}
|
502 |
# if raw_image:
|
503 |
# return_dict['raw_image'] = image
|
504 |
-
if numeric_array:
|
505 |
-
|
506 |
if metadata:
|
507 |
return_dict['metadata'] = image_overview
|
508 |
if rad_gradings:
|
|
|
139 |
"patient_id": datasets.Value("string"),
|
140 |
"scan_type": datasets.Value("string"),
|
141 |
# "raw_image": datasets.Image(),
|
142 |
+
# "numeric_array": datasets.Sequence(datasets.Value("int16")),
|
143 |
"metadata": {
|
144 |
"num_vertebrae": datasets.Value(dtype="string"),
|
145 |
"num_discs": datasets.Value(dtype="string"),
|
|
|
501 |
return_dict = {'patient_id':patient_id, 'scan_type':scan_type}
|
502 |
# if raw_image:
|
503 |
# return_dict['raw_image'] = image
|
504 |
+
# if numeric_array:
|
505 |
+
# return_dict['numeric_array'] = image_array
|
506 |
if metadata:
|
507 |
return_dict['metadata'] = image_overview
|
508 |
if rad_gradings:
|