You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 306 of monai.metrics.regression, the printed error message states that y_pred should have 4 dimensions when in fact the surrounding if-statement is looking for the case where y_pred should have 5 dimensions. This confused me because I got an error message saying:
"y_pred should have 4 dimensions (batch, channel, height, width, depth) when using 3 spatial dimensions, got 4."
Expected behavior
All that needs to be changed is the number 4 to a 5
The text was updated successfully, but these errors were encountered:
KumoLiu
added a commit
to KumoLiu/MONAI
that referenced
this issue
Apr 5, 2024
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>
Describe the bug
On line 306 of monai.metrics.regression, the printed error message states that y_pred should have 4 dimensions when in fact the surrounding if-statement is looking for the case where y_pred should have 5 dimensions. This confused me because I got an error message saying:
"y_pred should have 4 dimensions (batch, channel, height, width, depth) when using 3 spatial dimensions, got 4."
Expected behavior
All that needs to be changed is the number 4 to a 5
The text was updated successfully, but these errors were encountered: