Spacingd inverse transformation fills Grad-CAM tensor with all zero #7393
Replies: 2 comments 3 replies
-
Hi @dongdongtong, thanks for your interest here.
Thanks. Convert to the discussion, feel free to create another one if meet any issues |
Beta Was this translation helpful? Give feedback.
-
Hello @KumoLiu, I have another question about the
However, if I do this, an exception will be raised by I am really new to the project and I know this is a tiny problem, but I have no idea how to solve that... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I want to overlay the grad-cam tensor (the value is obtained by the monai gradcam++ class) on the original NIFTI image. So I want to utilize the image applied_operations of pre-performed transforms and inverse the grad-cam tensor. However, when I do this, everything performs well except the Spacingd.inverse fill the values of the tensor with 0.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The proper transformation of grad_cam to the right location.
Screenshots


MONAI debug output
Environment
Pytorch: 1.11.0
ubuntu: 20.04
monai: 1.3.0
files can be found here files.zip
ii.gz…]()
Beta Was this translation helpful? Give feedback.
All reactions