-
-
Notifications
You must be signed in to change notification settings - Fork 190
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
3D images not supported? #44
Comments
Hello again @FredrikM97 👋 Thanks for helping to catch some bugs! Could you produce a minimal snippet to produce this error please? Also, where is the |
No worries! Thank you for quick replies! The error occurs at line 122 in cams.py: Here is a sample of a 3D nifti image and the resnet: 3D_network.zip. Note that the resnet is configured for grayscale images. and three output classes. To open the file:
Here is a sample of the code I use:
Update:
The last step is to perform |
Hello, have you finished your 3D visualization? Can you share it? Thank you very much. |
Hi there 👋 The issue raised by @FredrikM97 was solved last year. I'm not sure what you're referring to regarding the 3D visualization? |
Thank you for quick replies!
|
Tried to use SmoothGradCAMpp, ScoreCAM and SSCAM on pytorch ResNet architecture.
SmoothGradCAMpp complains when taking the sum on the weights:
RuntimeError: The size of tensor a (5) must match the size of tensor b (3) at non-singleton dimension 1
Input:
(1, 1, 79, 190, 158)
I printed the input and the received the following:
"Weight.View:" torch.Size([2048, 5, 1, 1]) "Hook Squeese:" torch.Size([2048, 3, 6, 5]) "Weights:" torch.Size([2048, 5]) "Hook:" torch.Size([1, 2048, 3, 6, 5])
Question: Is it reasonable that SSCAM allocates 18gb memory on the GPU?
The text was updated successfully, but these errors were encountered: