Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing dimension order: natural_image_reader_writer.py #2158

Closed
wants to merge 1 commit into from

Conversation

felixkrones
Copy link

Fixing that additional dimension is added in front, such that new shape is (1,c,X,Y). If not, this is causing an "Error: Unexpected number of modalities" during verify for RGB images.

Fixing that additional dimension is added in front, such that new shape is (1,c,X,Y).
If not, this is causing an "Error: Unexpected number of modalities" during verify for RGB images.
@FabianIsensee
Copy link
Member

Hey this fix is not correct. My comment in the file was wrong: the expected channel ordering is (c, 1, x, y) and that is what my current implementation does. Images will be stacked in the first dimension. The 1 is just to make this a pseudo 3d image in order to keep the dimensions within nnU-Net consistent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants