From 72aaf1ca0bd5530bcfcb9793c1afbd5ccfc4f1d3 Mon Sep 17 00:00:00 2001 From: Akshat Sinha Date: Thu, 8 Jan 2026 20:02:23 +0530 Subject: [PATCH 1/2] fix(metrics): Corrected dimension count in MS-SSIM error message for 3D images. --- monai/metrics/regression.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monai/metrics/regression.py b/monai/metrics/regression.py index 317d624e73..15b280e257 100644 --- a/monai/metrics/regression.py +++ b/monai/metrics/regression.py @@ -539,7 +539,7 @@ def compute_ms_ssim( if spatial_dims == 3 and dims != 5: raise ValueError( - f"y_pred should have 4 dimensions (batch, channel, height, width, depth) when using {spatial_dims}" + f"y_pred should have 5 dimensions (batch, channel, height, width, depth) when using {spatial_dims}" f" spatial dimensions, got {dims}." ) From 9d14a89359e1977b2e52efeff7ced97ce48d1672 Mon Sep 17 00:00:00 2001 From: Akshat Sinha Date: Thu, 8 Jan 2026 20:07:08 +0530 Subject: [PATCH 2/2] DCO Remediation Commit for Akshat Sinha I, Akshat Sinha , hereby add my Signed-off-by to this commit: 72aaf1ca0bd5530bcfcb9793c1afbd5ccfc4f1d3 Signed-off-by: Akshat Sinha