Skip to content

Invert transform for MetaTensor #7286

Closed

Description

@surajpaib

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.

Activity

  1. KumoLiu commented on Dec 5, 2023

    @KumoLiu
    Contributor

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

    class Invert(Transform):

    Thanks!

  2. locked and limited conversation to collaborators on Dec 5, 2023
  3. converted this issue into a discussion #7289 on Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    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