MONAI icon indicating copy to clipboard operation
MONAI copied to clipboard

Channel last format

Open pure-rgb opened this issue 10 months ago • 1 comments

Does MONAI support the following format 3D data, (batch-size, depth, h, w, channel)? For utility like sliding_window_inference, and various built-in metrics, i.e. DICE?

pure-rgb avatar Feb 25 '25 02:02 pure-rgb

Hi @pure-rgb , thanks for opening this issue! Quick question: in your (batch, depth, h, w, channel) tensor, what cues or metadata do you use to identify that the last axis is indeed the channel dimension? For example, do you rely on a fixed small size (1/3/4), loader metadata (e.g. original_channel_dim), or something else? Clarifying this would help me reproduce and debug your setup. Thanks!

mattlin1124 avatar Jul 25 '25 02:07 mattlin1124