diff --git a/monai/transforms/spatial/array.py b/monai/transforms/spatial/array.py index 2b61b1f61a..f263e89152 100644 --- a/monai/transforms/spatial/array.py +++ b/monai/transforms/spatial/array.py @@ -230,6 +230,7 @@ def inverse(self, data: torch.Tensor) -> torch.Tensor: with self.trace_transform(False): # we can't use `self.__call__` in case a child class calls this inverse. out: torch.Tensor = SpatialResample.__call__(self, data, **kw_args) + kw_args["src_affine"] = kw_args.get("dst_affine") return out