Skip to content
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

Adapt TTA from training configuration [FEATURE] #167

Open
jdeschamps opened this issue Jun 24, 2024 · 0 comments
Open

Adapt TTA from training configuration [FEATURE] #167

jdeschamps opened this issue Jun 24, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jdeschamps
Copy link
Member

Currently, the TTA are composed of all 90 degrees rotations and flips and can only be turned on and off. In cases where training was performed with only X flips for instance, then the TTA should be deactivated to avoid out of distribution predictions.

In the inference convenience function, if tta=True, then the training configuration could be inspected and several parameters could be set in the inference configuration in order to correctly apply TTA:

  • flip_x: bool
  • flip_y: bool
  • rotate_xy: bool

This would currently cover the default CAREamics transformations.

Notes

  • TTA is implemented differently from the transforms, but we could think of a way to have the TTA use the transforms.
  • TTA expects SC(Z)YX, while the transforms expect C(Z)YX.
@jdeschamps jdeschamps added the enhancement New feature or request label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant