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

multi sample cropping transforms to inherit MultiSampleTrait #6002

Closed
wyli opened this issue Feb 15, 2023 · 0 comments · Fixed by #6003
Closed

multi sample cropping transforms to inherit MultiSampleTrait #6002

wyli opened this issue Feb 15, 2023 · 0 comments · Fixed by #6003
Assignees

Comments

@wyli
Copy link
Contributor

wyli commented Feb 15, 2023

Is your feature request related to a problem? Please describe.
transforms should specify whether multiple samples will be returned with

class MultiSampleTrait:
"""
An interface to indicate that the transform has the capability to return multiple samples
given an input, such as when performing random crops of a sample. This interface can be
extended from by people adapting transforms to the MONAI framework as well as by implementors
of MONAI transforms.

this is useful for #5711

@wyli wyli self-assigned this Feb 15, 2023
wyli added a commit that referenced this issue Feb 15, 2023
Fixes #6002



### Types of changes
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Non-breaking change (fix or new feature that would not break
existing functionality).
- [ ] Breaking change (fix or new feature that would cause existing
functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/`
folder.

---------

Signed-off-by: Wenqi Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant