YongchengYAO commited on
Commit
37a4531
·
1 Parent(s): f025b48
Files changed (1) hide show
  1. OAIZIB-CM.py +4 -2
OAIZIB-CM.py CHANGED
@@ -12,6 +12,8 @@ from datasets import (
12
  Value,
13
  )
14
 
 
 
15
  logger = datasets.logging.get_logger(__name__)
16
 
17
  _CITATION = """\
@@ -65,8 +67,8 @@ class OAIZIBCMDataset(GeneratorBasedBuilder):
65
  features=Features(
66
  {
67
  # Let datasets library infer the shape dimensions with variable sizes
68
- "image": Array3D(shape=(None, None, None), dtype="float32"),
69
- "mask": Array3D(shape=(None, None, None), dtype="float32"),
70
  "image_path": Value("string"),
71
  "mask_path": Value("string"),
72
  }
 
12
  Value,
13
  )
14
 
15
+ EXPECTED_SHAPE = (160, 384, 384)
16
+
17
  logger = datasets.logging.get_logger(__name__)
18
 
19
  _CITATION = """\
 
67
  features=Features(
68
  {
69
  # Let datasets library infer the shape dimensions with variable sizes
70
+ "image": Array3D(shape=EXPECTED_SHAPE, dtype="float32"),
71
+ "mask": Array3D(shape=EXPECTED_SHAPE, dtype="float32"),
72
  "image_path": Value("string"),
73
  "mask_path": Value("string"),
74
  }