Skip to content

Commit 87152d1

Browse files
authored
Fix typo in SSIMMetric (#7612)
Fixes #7610 ### Types of changes <!--- Put an `x` in all the boxes that apply, and remove the not applicable items --> - [x] Non-breaking change (fix or new feature that would not break existing functionality). - [ ] Breaking change (fix or new feature that would cause existing functionality to change). - [ ] New tests added to cover the changes. - [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`. - [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`. - [ ] In-line docstrings updated. - [ ] Documentation updated, tested `make html` command in the `docs/` folder. Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
1 parent c0b9cc0 commit 87152d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

monai/metrics/regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor
303303

304304
if self.spatial_dims == 3 and dims != 5:
305305
raise ValueError(
306-
f"y_pred should have 4 dimensions (batch, channel, height, width, depth) when using {self.spatial_dims}"
306+
f"y_pred should have 5 dimensions (batch, channel, height, width, depth) when using {self.spatial_dims}"
307307
f" spatial dimensions, got {dims}."
308308
)
309309

0 commit comments

Comments
 (0)