-
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
Refactor morphological functions as transform (or transform utils) #8003
Comments
Since this operation is used by MAISI and VISTA3D both, do you think it will help? @heyufan1995 @Can-Zhao @guopengf ? |
Also cc @yiheng-wang-nv @ericspod |
We should look at what other requirements there are but I think it would make sense to have a morphological operations transform to encapsulate them. |
+1 for making them transforms. Should MONAI use ITK's / SimpleITK's implementations? They offer a multitude of options: binary, grayscale, open, close, generalized - and all are multi-threaded, I believe some contain logic to specifically to only perform convolution only at an object's edges to significantly speed results compared to full convolution, and other developers have created GPU/CUDA accelerated versions but they aren't in ITK by default. |
We should look into what the implementation would look like, it's definitely possible to at least support using ITK implementations, though the virtue of what was added with MAISI was that it is only Pytorch. We could support using ITK if present but then default to Pytorch implementations if not. |
I meet the error |
Hi @qic999, it should be |
OK. Thanks. This error occurs on line 24 of https://github.com/Project-MONAI/tutorials/tree/main/generation/maisi/scripts/utils.py. |
Thanks, will fix it in the following prs. |
new error: |
Hi @aylward , the current implementations of erode/dilate are basically padding and conv2d/3d with
Currently the usage of erode/dilate needs to be on GPUs, and it will be more work to do if we deviate from the In my opinion, the role of |
Hi @qic999 , you'll need the https://docs.monai.io/en/stable/installation.html If my comment above can't resolve your issue, please open a new issue so that the team can better support you. I would like to keep this thread simply focus the implementation plan. Thank you! |
Describe the bug
The original discussion was in PR comment:
#7893 (comment)
Will a refactor of the
erode
anddilate
functions make it easier in different applications/networks/pre-processing?https://github.com/Project-MONAI/MONAI/blob/dev/monai/apps/generation/maisi/utils/morphological_ops.py
Expected behavior
The text was updated successfully, but these errors were encountered: