-
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
Add dtype to ToCupy #2950
Add dtype to ToCupy #2950
Conversation
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Hi @drbeh , Thanks for your enhancement. Thanks. |
Hi @Nic-Ma, you're right! cuCIM output data in the cupy array but it also expect the input data to be in |
Hi @drbeh , I see, could you please help provide the program of Thanks. |
That's a good point. I see where the confusion come from. cuCIM team has developed several transforms that we are going to use them in MONAI in conjunction with other transforms (for instance the torch.Tensor based transforms) via a |
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Thank you @Nic-Ma for your suggestion. What you are saying would work but will create a redundant copy of the image. This is not efficient specially for large images.I believe we should change the |
Hi @drbeh , OK, I see your point, as I said in #2926 (comment), to avoid to add more and more args, I will submit a PR to support Thanks. |
Submitted ticket to track it: #2951 |
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Hi @Nic-Ma, thank you very much for your constructive comment. I have applied all of them. Please let me know if there is anything else. thanks |
Signed-off-by: Behrooz <3968947+drbeh@users.noreply.github.com>
Description
This PR allow
ToCupy
transform define the expected outputdtype
.Status
Ready
Types of changes
./runtests.sh -f -u --net --coverage
../runtests.sh --quick --unittests
.