Chris Oswald commited on
Commit
1bd4f46
·
1 Parent(s): 76efad4
Files changed (1) hide show
  1. SPIDER.py +2 -2
SPIDER.py CHANGED
@@ -193,8 +193,8 @@ class SPIDER(datasets.GeneratorBasedBuilder):
193
  features = datasets.Features({
194
  "patient_id": datasets.Value("string"),
195
  "scan_type": datasets.Value("string"),
196
- "image": datasets.Image(),
197
- "mask": datasets.Image(),
198
  # "image": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
199
  # "mask": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
200
  "image_path": datasets.Value("string"),
 
193
  features = datasets.Features({
194
  "patient_id": datasets.Value("string"),
195
  "scan_type": datasets.Value("string"),
196
+ "image": datasets.Image("uint8"),
197
+ "mask": datasets.Image("uint8"),
198
  # "image": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
199
  # "mask": datasets.Array3D(shape=self.config.resize_shape, dtype='uint8'),
200
  "image_path": datasets.Value("string"),