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

4922 adding a minimal lazy transform interface #5407

Merged
merged 5 commits into from
Oct 29, 2022

Conversation

wyli
Copy link
Contributor

@wyli wyli commented Oct 26, 2022

follow-up of #4922

Description

  • minimal interface to track the pending transforms via metatensor
  • transforms.Flip is modified as an example for discussion
  • discussion points:
    • maintaining pending_operations and applied_operations independently?
    • the data structure for pending_operations element is a python dictionary
    • transform "functional" refactoring

Types of changes

  • 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.

@myron
Copy link
Collaborator

myron commented Oct 26, 2022

thank you. please see my comments here

#4911 (comment)
#4855 (comment)

I recommend to decouple spatial transform fusion logic, instead of sub-classing everything from LazyTransforms, which creates very convoluted code custom code. It will be very difficult for new users to understand or customize it.

Signed-off-by: Wenqi Li <[email protected]>
@wyli wyli marked this pull request as ready for review October 29, 2022 08:00
@wyli
Copy link
Contributor Author

wyli commented Oct 29, 2022

/build

@wyli wyli enabled auto-merge (squash) October 29, 2022 13:24
@wyli wyli merged commit f201883 into Project-MONAI:dev Oct 29, 2022
KumoLiu pushed a commit that referenced this pull request Nov 2, 2022
follow-up of #4922

### Description
- minimal interface to track the pending transforms via metatensor
- transforms.Flip is modified as an example for discussion
- discussion points:
- maintaining `pending_operations` and `applied_operations`
independently?
- the data structure for `pending_operations` element is a python
dictionary
  - transform "functional" refactoring

### 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).
- [x] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [x] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: KumoLiu <[email protected]>
yiheng-wang-nv pushed a commit to yiheng-wang-nv/MONAI that referenced this pull request Nov 2, 2022
follow-up of Project-MONAI#4922

### Description
- minimal interface to track the pending transforms via metatensor
- transforms.Flip is modified as an example for discussion
- discussion points:
- maintaining `pending_operations` and `applied_operations`
independently?
- the data structure for `pending_operations` element is a python
dictionary
  - transform "functional" refactoring

### 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).
- [x] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u
--net --coverage`.
- [x] Quick tests passed locally by running `./runtests.sh --quick
--unittests --disttests`.
- [x] In-line docstrings updated.
- [x] Documentation updated, tested `make html` command in the `docs/`
folder.

Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Yiheng Wang <[email protected]>
@wyli wyli deleted the 4922-step-1 branch February 8, 2023 12:15
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 this pull request may close these issues.

3 participants