Repository navigation
|
Describe the bug Expected behavior Top row is the ground truth label, with padding and bottom (predicted labels) is the expected padding behavior. Environment Ensuring you use the relevant python executable, please paste the output of: Additional context fn_keys = ["Img","Seg"]
val_transforms = Compose(
[
LoadImaged(keys=fn_keys),
EnsureChannelFirstd(keys="Img"),
ConvertToMultiChanneld(keys="Seg"),
ResizeWithPadOrCropd(spatial_size=(256,512,512),keys=fn_keys),),
EnsureTyped(keys=fn_keys),
]
) |
Replies: 2 comments 4 replies
|
Hi @umgpy , I think you can set the constant arg of Thanks. |
|
perhaps change the padding mode to |





perhaps change the padding mode to
"edge"https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/croppad/dictionary.py#L1416-L1417 (I'm converting this to a discussion)