Skip to content

Misleading warning message in decollate=False #3539

@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
Issue reported from NVIDIA QA team today:

Got this warning message in the Pathology program:
MONAI transforms expect `channel-first` data, `decollate=False` may not work here.
It has started since MONAI v0.6, where the default has changed to decollate=true.
@Nic-Ma isn’t this warning a bit misleading? Obviously, here everything is working and data is channel first but we need to have “decollate=false” for prob map generation.

if postprocessing is not None:
    if not decollate and isinstance(postprocessing, Transform):
        warnings.warn("MONAI transforms expect `channel-first` data, `decollate=False` may not work here.")

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions