Skip to content

Commit

Permalink
Fix typo in SSIMMetric (#7612)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
KumoLiu authored Apr 8, 2024
1 parent c0b9cc0 commit 87152d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/metrics/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def _compute_metric(self, y_pred: torch.Tensor, y: torch.Tensor) -> torch.Tensor

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

Expand Down

0 comments on commit 87152d1

Please sign in to comment.