Conversation
|
Hi @wyli , Thanks for raising the idea. Thanks in advance. |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
|
sure, I updated the docstring, it adds hooks to import torch
from monai.transforms import CenterSpatialCropD
a = torch.zeros((1, 10, 10))
data_dict = {"img": a}
cropper = CenterSpatialCropD("img", roi_size=(7, 7))
output = cropper(data_dict)
print(output.keys())
print(output['img'])
print(output['img_transforms'])output: |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
|
Hi @wyli , Could you please help add this Thanks in advance. |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
|
/black
thanks, I've updated and now the default is |
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
Nic-Ma
left a comment
There was a problem hiding this comment.
It overall looks good to me, put minor comments inline. Mainly about adding the array level Invert transform for MetaTensor.
Thanks.
Signed-off-by: Wenqi Li <[email protected]>
Signed-off-by: Wenqi Li <[email protected]>
|
/build |
|
Hi @wyli , Is there any unit tests or integration tests error after removing all the Thanks. |
Don't see any issue, probably it's not needed and is more efficient. |
Signed-off-by: Wenqi Li [email protected]
Description
adding pre/post hooks to
MapTransform/InvertibleTransformso that the dictionary-based transforms and their inverse can still have v0.9.0 behaviour.Status
Ready/Work in progress/Hold
Types of changes
./runtests.sh -f -u --net --coverage../runtests.sh --quick --unittests --disttests.make htmlcommand in thedocs/folder.