From c614d30e8f11a73eea2e89fe13a0a3314a2dfb2b Mon Sep 17 00:00:00 2001 From: Aaron Kujawa Date: Mon, 31 Jul 2023 15:01:42 +0100 Subject: [PATCH] DCO Remediation Commit for Aaron Kujawa I, Aaron Kujawa , hereby add my Signed-off-by to this commit: 774b6f1061652666af858682ccaa12f4d4206be8 I, Aaron Kujawa , hereby add my Signed-off-by to this commit: 9618f355c2fc979625176d28190a3a75aa5416c1 I, Aaron Kujawa , hereby add my Signed-off-by to this commit: 6227edf39948096257ad6ca20ec47b77637beb59 I, Aaron Kujawa , hereby add my Signed-off-by to this commit: 55002206c881b91537fe06214eaa4723b907cb30 I, Aaron Kujawa , hereby add my Signed-off-by to this commit: 146b1f2ef69689239f427db9b7f16334171bd04e --- monai/transforms/spatial/array.py | 1 + 1 file changed, 1 insertion(+) diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py index 029cc27afcc..571a640d29a 100644 --- a/monai/transforms/spatial/array.py +++ b/monai/transforms/spatial/array.py @@ -3516,6 +3516,7 @@ def __call__(self, img: torch.Tensor, randomize: bool = True) -> torch.Tensor: self.randomize() if self._do_transform: + input_shape = img.shape[1:] target_shape = np.round(np.array(input_shape) * self.zoom_factor).astype(np.int_)