Skip to content

enhances Compose input checks #6804

Closed
Closed

Description

@wyli

Is your feature request related to a problem? Please describe.
came across a similar issue as #6075:

import monai.transforms as mt

xform = mt.Compose(
    mt.LoadImage(image_only=True),
    mt.Orientation("RAS"),
)
xform("image.nii.gz")

no error message but the outcomes are different from the expected usage (with the [] in the Compose)

xform = mt.Compose([
    mt.LoadImage(image_only=True),
    mt.Orientation("RAS"),
])

this issue can be difficult to debug..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions