Skip to content

A tutorial to use randomised permutation during training #807

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

Merged
merged 4 commits into from
Jul 19, 2022

Conversation

vikashg
Copy link
Contributor

@vikashg vikashg commented Jul 19, 2022

Description

While training, if a monai transform chain is defined. It so happens that all the images go through the same transformations. All the transformations are vector quantities, so switching the order of transforms will generate a new augmentation. In the present implementation if you apply any transform more than once, you need to write it multiple times. Instead we are proposing is that the users can specify a dictionary of name of transformation (like rotate, flip or translate etc) and the frequency of transformation (an integer like 1, 2, ). The Augmentation class will then generate random transformation chain on the fly during training. One of the cons of this approach is that the cache method probably cannot be used as the transformations are being generated at random

Status

Ready

Checks

  • A tutorial is created where the usage can be tested.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@vikashg vikashg added the enhancement New feature or request label Jul 19, 2022
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, it looks good to me, I'll move it to the modules subfolder and update runner.sh.

@wyli wyli enabled auto-merge (squash) July 19, 2022 19:42
@wyli wyli merged commit 590461a into main Jul 19, 2022
@wyli wyli deleted the vikash/randomizedpermutations branch July 19, 2022 19:43
@vikashg
Copy link
Contributor Author

vikashg commented Jul 19, 2022

Thanks @wyli

boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this pull request Apr 21, 2024
…AI#807)

* A tutorial to use randomised permutation during training
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
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants