Skip to content

Commit faadcdb

Browse files
authored
Merge branch 'dev' into dev
2 parents facc345 + 806c0e8 commit faadcdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/transforms/croppad/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def crop_or_pad_nd(img: torch.Tensor, translation_mat, spatial_size: tuple[int,
144144
_mode = _convert_pt_pad_mode(mode)
145145
img = pad_nd(img, to_pad, mode=_mode, **kwargs)
146146
if do_crop:
147-
img = img[to_crop]
147+
img = img[tuple(to_crop)]
148148
return img
149149

150150

0 commit comments

Comments
 (0)