Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invert transform for MetaTensor #7286

Closed
surajpaib opened this issue Dec 4, 2023 · 1 comment
Closed

Invert transform for MetaTensor #7286

surajpaib opened this issue Dec 4, 2023 · 1 comment

Comments

@surajpaib
Copy link
Contributor

Is your feature request related to a problem? Please describe.
The existing Invertd transform provides useful functionality to invert transforms applied during training. I was not able to, however find an Invert transform that works only on MetaTensor

Describe the solution you'd like
I think it would be beneficial to have this feature for MetaTensor so it can be used outside dict formats.

Describe alternatives you've considered
Our current workaround is to just iterate over the transforms and call their inverse property in custom code.

Additional context
Add any other context or screenshots about the feature request here.

@KumoLiu
Copy link
Contributor

KumoLiu commented Dec 5, 2023

Hi @surajpaib, thanks for your reporting.
I think we have a "vanilla" one for Invert.

class Invert(Transform):

Thanks!

@Project-MONAI Project-MONAI locked and limited conversation to collaborators Dec 5, 2023
@KumoLiu KumoLiu converted this issue into discussion #7289 Dec 5, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants