Skip to content

Inaccurate error message in regression.py #7610

Closed
@rizvi-ha

Description

@rizvi-ha

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions