osbm commited on
Commit
6b4154b
·
1 Parent(s): 075e02c

Update prostate158.py

Browse files
Files changed (1) hide show
  1. prostate158.py +1 -1
prostate158.py CHANGED
@@ -95,7 +95,7 @@ class Prostate158Dataset(datasets.GeneratorBasedBuilder):
95
  # print("example_shape", images_data["t2"].shape)
96
  for _ in range(images_data["t2"].shape[2]):
97
  yield_index += 1
98
- yield yield_index, {image_name: image[:, :, i] for image in images_data}
99
 
100
  elif self.config.name == "3d":
101
  for idx, row in enumerate(df.to_dict(orient="records")):
 
95
  # print("example_shape", images_data["t2"].shape)
96
  for _ in range(images_data["t2"].shape[2]):
97
  yield_index += 1
98
+ yield yield_index, {image_name: image[:, :, i] for image_name, image in images_data.items()}
99
 
100
  elif self.config.name == "3d":
101
  for idx, row in enumerate(df.to_dict(orient="records")):