Skip to content

Generalize TestTimeAugmentation to non-spatial predictions #8276

Closed

Description

@bcdarwin

Currently monai.data.TestTimeAugmentation seemingly assumes the inverse transformations can be applied to the predictions, which necessarily means the predictions must be spatial.

Seems fairly straightforward - would be willing to write up a PR if there's interest and no reason this doesn't make sense.

Activity

  1. TheHuntsman4 commented on Jun 22, 2025

    @TheHuntsman4

    Hello, I don't see any activity on this issue. Would be happy to take this up.

  2. TheHuntsman4 commented on Jul 9, 2025

    @TheHuntsman4

    @KumoLiu I had a question regarding this issue. As I have understood this, if the output is non-spatial, ie something like a scalar value like a classification score, there is no need to go about applying the inversion step.

    The current solution that I had thought about for this was to have a flag parameter "apply_inverse_to_pred" that would be passed to the class that would dictate whether the inversion step has to be done or not.

  3. added a commit that references this issue on Feb 26, 2026
    0651704
  4. added a commit that references this issue on May 25, 2026
    caa0546
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