Chris Oswald
commited on
Commit
·
6bba779
1
Parent(s):
c9d4eff
temporary comment out of raw image
Browse files
SPIDER.py
CHANGED
|
@@ -138,7 +138,7 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
| 138 |
features = datasets.Features({
|
| 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"),
|
|
@@ -499,8 +499,8 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
| 499 |
|
| 500 |
# Prepare example return dict
|
| 501 |
return_dict = {'patient_id':patient_id, 'scan_type':scan_type}
|
| 502 |
-
if raw_image:
|
| 503 |
-
|
| 504 |
if numeric_array:
|
| 505 |
return_dict['numeric_array'] = image_array
|
| 506 |
if metadata:
|
|
|
|
| 138 |
features = datasets.Features({
|
| 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"),
|
|
|
|
| 499 |
|
| 500 |
# Prepare example return dict
|
| 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:
|