File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
napari_cellseg3d/dev_scripts Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change 99# MONAI
1010from monai .metrics import DiceMetric
1111from monai .transforms import (
12- AddChanneld ,
1312 Compose ,
1413 EnsureChannelFirstd ,
1514 EnsureTyped ,
1615 LoadImaged ,
1716 Orientationd ,
18- SpatialPadd ,
1917)
2018
2119# local
@@ -128,12 +126,11 @@ def get_dataset(self, train_transforms):
128126 load_single_images = Compose (
129127 [
130128 LoadImaged (keys = ["image" ]),
131- # EnsureChannelFirstd(
132- # keys=["image"],
133- # channel_dim="no_channel",
134- # strict_check=False,
135- # ),
136- AddChanneld (keys = ["image" ]),
129+ EnsureChannelFirstd (
130+ keys = ["image" ],
131+ channel_dim = "no_channel" ,
132+ strict_check = False ,
133+ ),
137134 Orientationd (keys = ["image" ], axcodes = "PLI" ),
138135 # SpatialPadd(
139136 # keys=["image"],
You can’t perform that action at this time.
0 commit comments