-
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
MIL component to extract patches #3237
Conversation
@myron, this components should go here: https://github.com/Project-MONAI/MONAI/blob/dev/monai/apps/pathology/transforms/spatial/array.py
I suggest to have something called |
I think I'll need a separate transform, since SplitOnGrid is only for pt tensorts, and mine is only for numpy |
Hi @myron @drbeh , Would you like to submit a new transform(array level and dict level)? It's better to make sure:
Thanks in advance. |
Hmm, I can't do that much.
|
Hi @myron , Sure, please just develop a transform with numpy backend first. Thanks. |
2c6c702
to
3d780ab
Compare
I've updated this transform, please take a look |
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.
Can you add unittests
and change this PR to a regular PR after that so people can review it? Thanks
I've updated this transform
please review |
I've made all the corrections, please check |
b32617e
to
ee7f4fe
Compare
I've fixed mypy issues |
Thank you @myron. Let me reviewed it again before moving forward and please try not to use force-push. Thanks |
Signed-off-by: myron <amyronenko@nvidia.com>
/black |
/build |
Signed-off-by: myron <amyronenko@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.
@myron thanks for working this components.I have reviewed this and I left several comments.
Also can you work on removing all # type: ignore
. I think that all the situation can be handled without being ignored. Please let me know if you have any question.
*** NOTE *** Please do not force push your next commits and let me know if you are not able to push without it.
Signed-off-by: myron <amyronenko@nvidia.com>
Signed-off-by: myron <amyronenko@nvidia.com>
Signed-off-by: myron <amyronenko@nvidia.com>
Signed-off-by: myron <amyronenko@nvidia.com>
/build |
Fixes #3162
This is a component for MIL to split the large 2D images into patches/tiles in numpy (ndarray views)
Some open questions, where is the best location for it? under apps/pathology ?
There is a somewhat similar named function (SplitOnGrid) #2879 , but it operates on Tensors, and it's for smaller splits (3x3 ?) and has fewer options. But still, people may get confused