Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels