Skip to content

Orientation handling of input volumes affects inference results #2897

@hassanelsheikh

Description

@hassanelsheikh

Hello,

I wanted to share an issue I encountered that took me quite some time to figure out. I was working with nnU-Net for bone segmentation, but my dataset did not have a consistent orientation across volumes. At first, I wasn’t aware that nnU-Net does not normalize or enforce a fixed orientation during preprocessing.

During training, the validation results looked great, but when running inference on new data, the performance dropped significantly. After some investigation, I realized that the variation in orientation between training and inference volumes was the root cause.

To resolve this, I had to manually reorient all my volumes to a consistent orientation before training and inference. This extra step was crucial for achieving reliable results, but it was not obvious at the start.

Suggestion:
It might be helpful if nnU-Net provided an option (or at least a warning) to enforce a fixed orientation during preprocessing/training. This would save users time and prevent confusion when working with datasets that come in different orientations.

Thank you for the great tool, and I hope this feedback helps improve the workflow for future users.

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