-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Monai equivalent to tio.OneOf transform? (ETA 8/13) #1847
Comments
Hi @neuronflow , May I know what's the usage case of this transform? What's the difference between a list of random transforms with different probabilities? Thanks. |
@Nic-Ma sorry I missed your response. The difference is that only one of the transforms will be picked from the list. While in the the other case you can end up with You could use it if you want to run an affine OR elastic transformation on your data but not both. |
Imgaug uses these sorts of meta-augments as does other libraries like albumentations. Adding the meta-transforms for doing a sequence of transforms (sometimes) or selecting from a list (someof or oneof) wouldn't be difficult. These would be treated like any other randomized transform and not cached by dataset classes. |
Yes, OneOf and SomeOf would be highly appreciated :) |
Hi @wyli , has anybody started working on this yet? If not, would you like me to try to submit a PR? |
Hi @lyndonboone , Thanks for your interest here, welcome your contribution if you like. Thanks. |
Sure, sounds great @lyndonboone @Nic-Ma . I haven't looked into the details about how to implement this, but happy to help review/revise the PRs. |
Is your feature request related to a problem? Please describe.
sometimes it is useful to have multiple augmentation paths
Describe the solution you'd like
I am a fan of tio.OneOf
https://torchio.readthedocs.io/_modules/torchio/transforms/augmentation/composition.html#OneOf
Describe alternatives you've considered
currently I use the tio function
Additional context
I find it so useful that I think it should be part of monai core.
The text was updated successfully, but these errors were encountered: