-
I'm working with a multi-label image dataset. My inputs have the following shape: ``torch.Size([3, 224, 224])``; and my targets are all 1x33 tensors one-hot encoded, as in the following example:
``
…
-
Hi,
I'm implementing the following custom function:
> def return_cam_from_model(model, target_layer, batch, targets , cam_name = "gradcam"):
>
> model.eval() # da rimettere in .train() se…
-
想问一下GradCAM是不是只能用在有标签的情况呀?不然没法反向传播?直觉上好像解释不应该依赖标签才合理?如果没有标签的话应该怎么做可视化呀?
-
Can you provide the code for visualizing your Gradcam?I cannot reproduce the results of your paper.
-
### Bug
非常感谢作者提供这个优秀的项目,我想问一下代码应该如何可视化注意力的热力图,能否提供一个例子,以便了解图片中各个区域对模型作出预测的影响有多大。期待作者的回复!
![Uploading 35bfb787d0c252b0831a92517d85091.png…]()
### 环境信息
_No response_
### 补充信息
_No res…
-
Hi,
I would greatly appreciate it if you could share the code that you used for the visualization in figures 2 and 3 of the supplementary material? (trajectory-guided attention maps, GradCam and Eig…
-
Hello, how did you draw a heatmap? The effect I drew using the Gradcam method is much worse than the one in your paper. Would you like to make this part of the code public?
-
Hey there,
Im my research I need to generate a lot of GradCAM heat-maps which I then do further processing on. Im using the `GradCAM` class as I dont need other implementations right now - although…
-
https://github.com/pytorch/captum/blob/43acfcd320c44e8e469bf5276af9d55cf62145aa/captum/attr/_core/guided_grad_cam.py#L211
If I understand corretly, the parameter here should be:
inputs[i].shape[1…
-