Skip to content

Commit

Permalink
switch back to symmetric padding
Browse files Browse the repository at this point in the history
  • Loading branch information
dsethz committed Dec 20, 2024
1 parent 412cae7 commit 97446cf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/nuclai/utils/datamodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from monai import transforms
from torch.utils.data import DataLoader

from nuclai.utils.utils import RandomSpatialPad, _get_mask
from nuclai.utils.utils import _get_mask


class DataSetCls:
Expand Down Expand Up @@ -221,8 +221,10 @@ def __init__(
self.data = pd.read_csv(path_data)
self.shape = shape
self.trans = trans
self.padder = RandomSpatialPad(self.shape)
# self.padder = transforms.SpatialPad(spatial_size=self.shape, method="symmetric")
# self.padder = RandomSpatialPad(self.shape)
self.padder = transforms.SpatialPad(
spatial_size=self.shape, method="symmetric"
)

assert (
"image" in self.data.columns
Expand Down

0 comments on commit 97446cf

Please sign in to comment.