pytorch-grad-cam
pytorch-grad-cam copied to clipboard
Advanced AI Explainability for computer vision. Support for CNNs, Vision Transformers, Classification, Object detection, Segmentation, Image similarity and more.
I tried to run the vit example code, however, I noticed the following errors. Python 3.9.18 (main, Sep 11 2023, 13:41:44) [GCC 11.2.0] :: Anaconda, Inc. on linux Type "help",...
Hi, I want to use the `EigenCAM` technique on `my YOLOv8n model`, preaddestred for a detection task. Once i declare my YOLO .pt weights and I create my tensor image,...
Hi @jacobgil. It's a nice work! Thanks to you and all the contributors behind it. I tried replacing norm1 with block[-1].attn or norm2 without any other changes, but the gradient...
Can it be used for one-dimensional data? For example, time series data
I was playing with this and found extra parameter is not working my colab version of testing : https://colab.research.google.com/drive/1TwzPmlFoLl0R0ARYdLmApruBwTQRCeKg#scrollTo=615929e3
Hi, It would be nice to support counterfactual grad-cams from section 3.3 in the original paper. https://arxiv.org/pdf/1610.02391 I guess it is a matter of changing this https://github.com/jacobgil/pytorch-grad-cam/blob/1ff3f58818baa2889f3f51d0b9759783b4333ba0/pytorch_grad_cam/base_cam.py#L141-L142 to this ```...
Hi, I am trying to generate CAMs from Microsoft's prov-gigapath model. I am getting: **RuntimeError: shape [1,14,14,1536] is invalid for input of size 393216.** I am using the modifying vit_example...
Hi. I am facing issues with grad-cam with my custom VitModel. I followed the [tutorial](https://jacobgil.github.io/pytorch-gradcam-book/HuggingFace.html#what-different-xai-methods-need) for Vision Transformer here and tried to adapt to my model. I managed to get...
I used a VGG16 based UNet to learn to segment buildings from an image. During training, I found that the encoder's activation starts to shrink to small area of the...