yizt / Grad-CAM.pytorch

pytorch实现Grad-CAM和Grad-CAM++,可以可视化任意分类网络的Class Activation Map (CAM)图,包括自定义的网络;同时也实现了目标检测faster r-cnn和retinanet两个网络的CAM图;欢迎试用、关注并反馈问题...
Apache License 2.0
715 stars 166 forks source link

图像分割图怎么实现grad-cam #10

Open JackeyGHD1 opened 4 years ago

JackeyGHD1 commented 4 years ago

大神,大哥,大佬,求给点指导,就是分割图怎么做grad-cam啊

yizt commented 4 years ago

分割已经是像素级结果,不需要cam图

易作天

邮箱:csuyzt@163.com |

签名由 网易邮箱大师 定制

在2020年05月06日 19:48,JackeyGHD1 写道:

大神,大哥,大佬,求给点指导,就是分割图怎么做grad-cam啊

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

JackeyGHD1 commented 4 years ago

比如说一些attention的可视化会用的呀

截屏2020-05-06 下午8 10 00
yizt commented 4 years ago

@JackeyGHD1 您好,请问截图来源哪里?

JackeyGHD1 commented 4 years ago

ACFNet: Attentional Class Feature Network for Semantic Segmentation,这篇文章

yizt commented 4 years ago

@JackeyGHD1 收到,谢谢,我先看看这篇文章,再给您回复哈

JackeyGHD1 commented 4 years ago

我可以加你个微信吗

Stark-Chang commented 2 years ago

比如说一些attention的可视化会用的呀 截屏2020-05-06 下午8 10 00

您好,请问您这个问题解决了吗?

Stark-Chang commented 2 years ago

分割已经是像素级结果,不需要cam图 | | 易作天 | | 邮箱:csuyzt@163.com | 签名由 网易邮箱大师 定制 在2020年05月06日 19:48,JackeyGHD1 写道: 大神,大哥,大佬,求给点指导,就是分割图怎么做grad-cam啊 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

大佬您好,同问如何可视化语义分割里的grad-cam,分类使用的是one-hot编码,分割用的是二维的label,是否需要修改以下代码? output = self.net(inputs) # [1,num_classes] if index is None: index = np.argmax(output.cpu().data.numpy()) target = output[0][index] target.backward() 这段代码如何根据语义分割的label进行修改呢?请大佬赐教!

luosi1997 commented 1 year ago

请问 问题解决了吗