Chris Oswald
commited on
Commit
·
3e1c16f
1
Parent(s):
69d3d64
testing sequence of images for 3D image data
Browse files
SPIDER.py
CHANGED
@@ -107,7 +107,7 @@ def standardize_3D_mask(
|
|
107 |
MIN_IVD = 0
|
108 |
MAX_IVD = 9
|
109 |
DEFAULT_SCAN_TYPES = ['t1', 't2', 't2_SPACE']
|
110 |
-
DEFAULT_RESIZE = (512, 512
|
111 |
DEMO_SUBSET_N = 10
|
112 |
|
113 |
_CITATION = """\
|
@@ -237,8 +237,10 @@ class SPIDER(datasets.GeneratorBasedBuilder):
|
|
237 |
features = datasets.Features({
|
238 |
"patient_id": datasets.Value("string"),
|
239 |
"scan_type": datasets.Value("string"),
|
240 |
-
"image": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
|
241 |
-
"mask": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
|
|
|
|
|
242 |
"image_path": datasets.Value("string"),
|
243 |
"mask_path": datasets.Value("string"),
|
244 |
"metadata": {
|
|
|
107 |
MIN_IVD = 0
|
108 |
MAX_IVD = 9
|
109 |
DEFAULT_SCAN_TYPES = ['t1', 't2', 't2_SPACE']
|
110 |
+
DEFAULT_RESIZE = (512, 512)
|
111 |
DEMO_SUBSET_N = 10
|
112 |
|
113 |
_CITATION = """\
|
|
|
237 |
features = datasets.Features({
|
238 |
"patient_id": datasets.Value("string"),
|
239 |
"scan_type": datasets.Value("string"),
|
240 |
+
# "image": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
|
241 |
+
# "mask": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
|
242 |
+
"image": datasets.Sequence(datasets.Image()),
|
243 |
+
"mask": datasets.Sequence(datasets.Image()),
|
244 |
"image_path": datasets.Value("string"),
|
245 |
"mask_path": datasets.Value("string"),
|
246 |
"metadata": {
|