HyperAIHyperAI

Command Palette

Search for a command to run...

a month ago

Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization

Grad-CAM: Visual Explanations from Deep Networks via Gradient-based
  Localization

Abstract

We propose a technique for producing "visual explanations" for decisions froma large class of CNN-based models, making them more transparent. Our approach -Gradient-weighted Class Activation Mapping (Grad-CAM), uses the gradients ofany target concept, flowing into the final convolutional layer to produce acoarse localization map highlighting important regions in the image forpredicting the concept. Grad-CAM is applicable to a wide variety of CNNmodel-families: (1) CNNs with fully-connected layers, (2) CNNs used forstructured outputs, (3) CNNs used in tasks with multimodal inputs orreinforcement learning, without any architectural changes or re-training. Wecombine Grad-CAM with fine-grained visualizations to create a high-resolutionclass-discriminative visualization and apply it to off-the-shelf imageclassification, captioning, and visual question answering (VQA) models,including ResNet-based architectures. In the context of image classificationmodels, our visualizations (a) lend insights into their failure modes, (b) arerobust to adversarial images, (c) outperform previous methods on localization,(d) are more faithful to the underlying model and (e) help achievegeneralization by identifying dataset bias. For captioning and VQA, we showthat even non-attention based models can localize inputs. We devise a way toidentify important neurons through Grad-CAM and combine it with neuron names toprovide textual explanations for model decisions. Finally, we design andconduct human studies to measure if Grad-CAM helps users establish appropriatetrust in predictions from models and show that Grad-CAM helps untrained userssuccessfully discern a 'stronger' nodel from a 'weaker' one even when both makeidentical predictions. Our code is available athttps://github.com/ramprs/grad-cam/, along with a demo athttp://gradcam.cloudcv.org, and a video at youtu.be/COjUB9Izk6E.

Code Repositories

karandesaiii/CheXNet
pytorch
Mentioned in GitHub
sail-sg/dualformer
pytorch
Mentioned in GitHub
AlexSzen/wwf_shark_id
pytorch
Mentioned in GitHub
Onysuke/chainer-grad-cam
Mentioned in GitHub
sicara/tf-explain
tf
Mentioned in GitHub
shyhyawJou/GradCAM-Tensorflow
tf
Mentioned in GitHub
itanvir/gradcam
tf
Mentioned in GitHub
kjczarne/eager_gradcam_tf
tf
Mentioned in GitHub
skmda37/shearletx
pytorch
Mentioned in GitHub
teddykoker/image-forensics
pytorch
Mentioned in GitHub
ramprs/grad-cam
Official
pytorch
Mentioned in GitHub
wsanchezdupont1/Grad-CAM
pytorch
Mentioned in GitHub
Mukundaram/Mukund
tf
Mentioned in GitHub
hs2k/pytorch-smoothgrad
pytorch
Mentioned in GitHub
yaleCat/Grad-CAM-pytorch
pytorch
Mentioned in GitHub
shyhyawJou/Grad-CAM-pytorch
pytorch
Mentioned in GitHub
Fragjacker/Pointcloud-grad-CAM
tf
Mentioned in GitHub
eclique/keras-gradcam
tf
Mentioned in GitHub
msandeep27/Pytorch-Grad-Cam
pytorch
Mentioned in GitHub
bill86416/trojan_attack
pytorch
Mentioned in GitHub
LucasElbert/GradCam
pytorch
Mentioned in GitHub
AlanYangYi/PhotoStyleRecongnizer
pytorch
Mentioned in GitHub
frgfm/torch-cam
pytorch
Mentioned in GitHub
dtanoglidis/DeepShadows
tf
Mentioned in GitHub
vbbphc/GradCAM.jl
Mentioned in GitHub
meliketoy/gradcam.pytorch
pytorch
Mentioned in GitHub
TooTouch/WhiteBox-Part1
pytorch
Mentioned in GitHub
RuizhiZhang/MManGoCam
pytorch
Mentioned in GitHub
Ankush96/grad-cam.tensorflow
tf
Mentioned in GitHub
anilkarabulut/copy-LeNet
Mentioned in GitHub
gshashank84/CheXNet
pytorch
Mentioned in GitHub
olivesgatech/explanatory-paradigms
pytorch
Mentioned in GitHub
ShahinSHH/COVID-FACT
tf
Mentioned in GitHub
novice03/timm-vis
pytorch
Mentioned in GitHub
xaviercanche/Grad-CAM
pytorch
Mentioned in GitHub
LuanAdemi/VisualGo
pytorch
Mentioned in GitHub
Cloud-CV/Grad-CAM
pytorch
Mentioned in GitHub
yiskw713/SmoothGradCAMplusplus
pytorch
Mentioned in GitHub
rahulcoding/CheXNet
pytorch
Mentioned in GitHub
moserle/TSJS-Grad-CAM
tf
Mentioned in GitHub
jmvuilla/classification
Mentioned in GitHub
Deepak3994/grad-cam-editted
tf
Mentioned in GitHub
tanjimin/grad-cam-pytorch-light
pytorch
Mentioned in GitHub
rshah240/conv_visualiser
tf
Mentioned in GitHub
MaxHolmberg96/GradCAM
tf
Mentioned in GitHub
Youngb2n/GradCAM
Mentioned in GitHub
yiskw713/RISE
pytorch
Mentioned in GitHub
Deepak3994/Grad-Cam
tf
Mentioned in GitHub
Hydragon516/Grad-CAM-pytorch
pytorch
Mentioned in GitHub
Murali81/Grad-CAM
Mentioned in GitHub
jacobgil/pytorch-grad-cam
pytorch
Mentioned in GitHub
isaaccasm/GradCAM-keras
tf
Mentioned in GitHub
ryoasu/grad-cam
tf
Mentioned in GitHub
Stephenfang51/Grad_CAM
Mentioned in GitHub
phanav/upsaclay-hygieia
Mentioned in GitHub
Stomper10/CheXpert
pytorch
Mentioned in GitHub
idiap/fullgrad-saliency
pytorch
Mentioned in GitHub
Jmak12/Iris1
pytorch
Mentioned in GitHub
caggursoy/crossageeffect
Mentioned in GitHub
rabihchamas/dcls-gradcam-eval
pytorch
Mentioned in GitHub
wawaku/grad-cam-keras
tf
Mentioned in GitHub
AlanYangYi/GayPhotoStyleRecongnizer
pytorch
Mentioned in GitHub
CMU-CREATE-Lab/deep-smoke-machine
pytorch
Mentioned in GitHub
xn1997/pytorch-grad-cam
pytorch
Mentioned in GitHub
yiskw713/ClassActivationMapping
pytorch
Mentioned in GitHub
priyavrat-misra/xrays-and-gradcam
pytorch
Mentioned in GitHub
betashort/ClassActivationMappings
pytorch
Mentioned in GitHub
RasmusAndersen/grad-cam
tf
Mentioned in GitHub
fitushar/3D-Grad-CAM
tf
Mentioned in GitHub
JosephElHachem/GradCam
pytorch
Mentioned in GitHub
AhnYoungBin/Grad_cam
Mentioned in GitHub
yiskw713/scorecam
pytorch
Mentioned in GitHub
caggursoy/Cross-Age-Effect
Mentioned in GitHub
n-akram/GradCamDDD
tf
Mentioned in GitHub
notem/keras-alexnet
tf
Mentioned in GitHub
jacobgil/keras-grad-cam
tf
Mentioned in GitHub
lpcan/micl
tf
Mentioned in GitHub
IS2AI/Chest-X-ray-module
pytorch
Mentioned in GitHub
Wordbe/GradCAM3D
tf
Mentioned in GitHub
ajaykrishnan23/Grad_Cam
pytorch
Mentioned in GitHub
chinesh/Guided_Grad_CAM
tf
Mentioned in GitHub
shucheng-liu/TensorFlow_CAM
tf
Mentioned in GitHub
olivesgatech/introspective-learning
pytorch
Mentioned in GitHub
thtang/CheXNet-with-localization
pytorch
Mentioned in GitHub
Sooram/GradCam-tensorflow
tf
Mentioned in GitHub
daixiangzi/Grad_Cam-pytorch-resnet50
pytorch
Mentioned in GitHub
AldrichCabrera/gradCam-smallvgg
tf
Mentioned in GitHub
TheInfamousWayne/CheXNet
pytorch
Mentioned in GitHub
JuHyun-E/Attention-ResNet50
tf
Mentioned in GitHub
tsurumeso/chainer-grad-cam
Mentioned in GitHub
chenbys/GradCAM
pytorch
Mentioned in GitHub
darkonhub/darkon
tf
Mentioned in GitHub
JuHyun-E/Attention_in_NN
tf
Mentioned in GitHub
tarolangner/mri-biometry
pytorch
Mentioned in GitHub
pytorch/captum
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
image-attribution-on-celebaGrad-CAM
Deletion AUC score (ArcFace ResNet-101): 0.2865
Insertion AUC score (ArcFace ResNet-101): 0.3721
image-attribution-on-cub-200-2011-1Grad-CAM
Deletion AUC score (ResNet-101): 0.0810
Insertion AUC score (ResNet-101): 0.7224
image-attribution-on-vggface2Grad-CAM
Deletion AUC score (ArcFace ResNet-101): 0.3103
Insertion AUC score (ArcFace ResNet-101): 0.4733
interpretability-techniques-for-deep-learning-1Grad-CAM
Insertion AUC score: 0.3721

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Grad-CAM: Visual Explanations from Deep Networks via Gradient-based Localization | Papers | HyperAI