Update prostate158.py
Browse files- 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")):
|