-
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
Replacement Apply and Resample #5436
Conversation
/black |
The problem is that MatrixFactory/MetaMatrix are the classes by which a lot of the internal stuff for lazy resampling is done. They could certainly change before the PR goes in, but that would necessitate some plumbing to happen and I don't know if I'll have time before I am on holiday. The key thing here at the moment is that this PR doesn't change any existing behaviour so if we want to refactor we certainly can. What they do:
In theory, one or both could go, but it might make everything somewhat verbose. Neither are supposed to be user-facing Might be a good topic for tomorrow, but I am trying to get the PRs as populated as possible for tonight. |
…nd dictionary transforms to operate while waiting for PR #5436 Signed-off-by: Ben Murray <ben.murray@gmail.com>
…al, array and dictionary transforms to operate while waiting for PR #5436 Signed-off-by: Ben Murray <ben.murray@gmail.com>
…al, array and dictionary transforms to operate while waiting for PR #5436 Signed-off-by: Ben Murray <ben.murray@gmail.com>
…5436 Signed-off-by: Ben Murray <ben.murray@gmail.com>
95ed4a1
to
87c4356
Compare
…with rabasing and automatic signatures Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: Ben Murray <ben.murray@gmail.com>
for more information, see https://pre-commit.ci
Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: Ben Murray <ben.murray@gmail.com>
for more information, see https://pre-commit.ci
Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: Ben Murray <ben.murray@gmail.com>
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
- `_pending_operations` defaults to `MetaObj.get_default_applied_operations()` - removes the unused `Apply` class - fixes unit tests, style checks - torch.pi doesn't exist before torch 1.10 Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@atbenmurray please make more changes if needed and let me know when you think it's ready.. cc @Nic-Ma this mainly introduces necessary APIs monai.transforms.lazy.*
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
/build |
Signed-off-by: Ben Murray ben.murray@gmail.com
Description
This is part of the work towards #4855. It adds:
apply
methodapply
calledApply
-MetaMatrix
and related functionality to represent abstracted grid and matrix transforms with metadataresample
function that can be used to apply grid / matrix transforms- Functional spatial and croppad implementations that define but don't apply transformsTypes of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests --disttests
.make html
command in thedocs/
folder.