Skip to content

No option to skip the check when calling inverse method on the transform #4769

@SachidanandAlle

Description

@SachidanandAlle

Example:

https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/spatial/array.py#L315-L329

https://github.com/Project-MONAI/MONAI/blob/dev/monai/transforms/inverse.py#L191

    def inverse(self, data: torch.Tensor) -> torch.Tensor:
        transform = self.pop_transform(data)  # how to pass check=False here...?
        # more logic...

        return data

How to pass check=False when we call inverse method on a given transform?
I would like to skip instance ID check while running the Inverse Transform...

Same in case of Dictionary based transform..

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions