Replies: 3 comments 7 replies
-
Could you make a minimum working example? You should be able to initialise the UNet without training and use torch.rand to create your image. |
Beta Was this translation helpful? Give feedback.
-
Hi @rijobro , I created a simple U-Net:
And then tried to adapt the code from the interpretability notebook:
What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Hi @rijobro @wyli |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using a U-net to do some segmentation on 3D volumes and I would like to see where it focuses.
I tried using GradCAM but it tries to allocate thousands of Gb of memory and I would like to know if it's because of the size of my data or because I made a mistake.
here is the relevant part of my code :
cam = monai.visualize.GradCAM(nn_module=model, target_layers="model.0.conv")
img = batch_data["image"] #img.shape = (4,1,96,96,96)
cam_res = cam(x=img, class_idx=None)
Beta Was this translation helpful? Give feedback.
All reactions