changes to hit.py
Browse files
hit.py
CHANGED
@@ -82,7 +82,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
82 |
{
|
83 |
"gender": datasets.Value("string"),
|
84 |
"mri_seg": datasets.Array3D(dtype="int64", shape=(192, 256, None)),
|
85 |
-
|
86 |
#"mri_seg_dict": datasets.Sequence(datasets.Sequence(datasets.Value("float"))),
|
87 |
"resolution": datasets.Array3D(dtype="float32", shape=(None, 3)),
|
88 |
"center": datasets.Array3D(dtype="float32", shape=(None, 3)),
|
@@ -167,7 +167,7 @@ class NewDataset(datasets.GeneratorBasedBuilder):
|
|
167 |
del data['mri_seg_dict']
|
168 |
del data['smpl_dict']
|
169 |
#del data['mri_seg']
|
170 |
-
del data['mri_labels']
|
171 |
#del data['resolution']
|
172 |
#del data['center']
|
173 |
yield key, data
|
|
|
82 |
{
|
83 |
"gender": datasets.Value("string"),
|
84 |
"mri_seg": datasets.Array3D(dtype="int64", shape=(192, 256, None)),
|
85 |
+
"mri_labels": datasets.features.Sequence(datasets.features.ClassLabel(names=["NO", "LT", "AT", "VAT", "BONE"])),
|
86 |
#"mri_seg_dict": datasets.Sequence(datasets.Sequence(datasets.Value("float"))),
|
87 |
"resolution": datasets.Array3D(dtype="float32", shape=(None, 3)),
|
88 |
"center": datasets.Array3D(dtype="float32", shape=(None, 3)),
|
|
|
167 |
del data['mri_seg_dict']
|
168 |
del data['smpl_dict']
|
169 |
#del data['mri_seg']
|
170 |
+
#del data['mri_labels']
|
171 |
#del data['resolution']
|
172 |
#del data['center']
|
173 |
yield key, data
|