Skip to content

Conversation

@dimitri-fabreges
Copy link

@dimitri-fabreges dimitri-fabreges commented Oct 9, 2025

In CLI mode, when using 4D images, the image is always opened with io.imread_3D when channel_axis has a truthy value. The result is an unwanted swap between the last axis and the channel axis.

With a ZCYX axis order, the CLI command will be run with --do_3D, --channel_axis 1 and --z_axis 0.
Because channel_axis is truthy, the image will be opened with io.imread_3D causing a swap of the last axis and the channel axis. As a result, the opened image is changed to a ZXYC order, but the channel_axis variable is not updated. The later call to .eval() is therefore using the wrong channel axis (1, pointing to X), causing error in segmentation.

In CLI mode, when using 4D images, the image was always opened with `io.imread_3D` when `channel_axis` had a truthy value. The result was an unwanted swap between the last axis and the channel axis.
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.

1 participant